Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nic Card ...traffic reset ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
maca
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2003
Posts: 84
Location: Perth, Australia

PostPosted: Sun Oct 05, 2003 9:59 pm    Post subject: Nic Card ...traffic reset ? Reply with quote

I have had my gentoo box up for a month or so constantly now ... and I have been D/L quite a bit, but I find that after about 5 gig of D/L the ifconfig command will return a traffic count of less than this .... like the interface has reset ? It's not a terribly big deal but I am curious can anyone shed any light on the senario ???

cheers
_________________
You can take nothing from me that I will more freely give, except my life

William Shakespeare
Hamlet
Back to top
View user's profile Send private message
andrew_j_w
Guru
Guru


Joined: 28 Jun 2003
Posts: 534
Location: York, UK

PostPosted: Sun Oct 05, 2003 10:42 pm    Post subject: Reply with quote

The amount of traffic is stored as bytes in a normal 32 bit unsigned integer.

2^32 bytes
= 4294967296 bytes
= 4194304 kilobytes
= 4096 megabytes

When the amount of traffic gets above 4096MB it overflows and returns to 0.

I'm pretty sure that's what happens, I haven't actually looked at the code to check...

HTH,
Andrew
Back to top
View user's profile Send private message
maca
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2003
Posts: 84
Location: Perth, Australia

PostPosted: Sun Oct 05, 2003 10:57 pm    Post subject: Reply with quote

thanks bud, I pretty much thought it was something like that ....thanks for the confirmation ..........
_________________
You can take nothing from me that I will more freely give, except my life

William Shakespeare
Hamlet
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum