Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When doing ifconfig from hour to hour I notice that the counters for RX/TX bytes transfers resets:

RX bytes:921640934 (921.6 MB) TX bytes:4001470884 (4.0 GB)

How come? I would like to keep track how much data i transfer from day to day but they keep resetting.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Seems like counters are 32bit integers so they "wrap around" at ~4GB.

share|improve this answer
add comment

I believe that MrShunz's answer is correct. However, not all hope is lost. If you are interested in keeping statistics on how much you transfer each day, you might consider vnstat.

share|improve this answer
    
Thanks. Vnstat works like a charm –  jonasl Oct 24 '10 at 8:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.