VOL-2554: Convert traffic rate values for itupon_alloc from kbps to bytes/sec
Change-Id: I153761de36f318de44bab075f5a9880a7e01fbba
diff --git a/agent/src/core.cc b/agent/src/core.cc
index 8d65d21..0337bed 100644
--- a/agent/src/core.cc
+++ b/agent/src/core.cc
@@ -3354,8 +3354,8 @@
key.pon_ni = intf_id;
key.alloc_id = alloc_id;
int bw_granularity = (board_technology == "XGS-PON")?XGS_BANDWIDTH_GRANULARITY:GPON_BANDWIDTH_GRANULARITY;
- int pir_bw = tf_sh_info.pir();
- int cir_bw = tf_sh_info.cir();
+ int pir_bw = tf_sh_info.pir()*125; // conversion from kbps to bytes/sec
+ int cir_bw = tf_sh_info.cir()*125; // conversion from kbps to bytes/sec
//offset to match bandwidth granularity
int offset_pir_bw = pir_bw%bw_granularity;
int offset_cir_bw = cir_bw%bw_granularity;