Traffic Calculation Confusion

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
claudi
OpenVpn Newbie
Posts: 13
Joined: Wed Apr 09, 2014 9:17 pm

Traffic Calculation Confusion

Post by 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!

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Traffic Calculation Confusion

Post by 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:

Post Reply