Traffic Calculation Confusion

This forum is for general conversation and user-user networking.
claudi
OpenVPN User
Posts: 20
Joined: Wed Apr 09, 2014 9:17 pm

Traffic Calculation Confusion

Postby claudi » Fri Mar 17, 2017 5:57 pm

Hello community. I hope you have an answer which clarifies my confusion about how to calculate the traffic in the right way. I am reading the bytes_received variable and want to calculate the traffic used. Now I read at least 5 articles about Kibibyte and Kilobyte stuff and when I thought I got it the other article tells something else.

My question is: Do I have to use binary basis (2^x) and divide by 1024 or decimal basis (10^x) and divide by 1000 to calculate the traffic from the bytes stored in the variable? Thank you for your help!

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 2252
Joined: Fri Jun 03, 2016 1:17 pm

Re: Traffic Calculation Confusion

Postby TinCanTech » Fri Mar 17, 2017 6:16 pm

claudi wrote:I am reading the bytes_received variable and want to calculate the traffic used. Now I read at least 5 articles about Kibibyte and Kilobyte stuff
Openvpn provides bytes .. Calculate your exponent as is appropriate to you .. :ugeek:


Return to “Off Topic, Related”

Who is online

Users browsing this forum: No registered users and 2 guests