How to convert value from lastvalue_raw to Mbps or kbps.

result from : api/table.json?filter_type=snmptraffic&content=sensors&output=json&columns=objid,lastvalue&id=53696 {{{ "sensors": [

{ "objid": 53797, "objid_raw": 53797, "lastvalue": "9.22 kbit/s", "lastvalue_raw": 1152.0667 },}}}


Article Comments

Hello,

Thank you for your message.

To convert the raw value in Kbit, simply multiply it by 8 and then divide by 1000.

(1152.0667*8)/1000 = 9,2165 (9.22 kbits/s).

Kind regards.


Dec, 2020 - Permalink