does ifconfig rx bytes counter have Max limit
Hi,
I have made a PHP script that runs periodically and get the value of RX bytes and TX bytes from the output of `ifconfig eht0` command, then it subtract the current RX or TX bytes value from the previous RX or TX value and divide it by the nomber of seconds betwen the tow samples to get (Bytes/Sec) ratio.
I am using it from inside cacti on a running server which have 4 to 6 GB transfer per day.
I have noticed that I have got a negative result of the ratio, yesterday the TX bytes output was something like 2 GB and today it is 3 MB !.
so the counter flip to zero and continue counting when it reaches an upper limit.
I need to know what Max limit it has? is it 2 to the power of 32 as it is a 32bit counter. I want the excact number so I can fix my script and get acurate values.
Thanks.
|