James Carlson wrote: > Garrett D'Amore writes: >> If the user is saavy enough to store a snapshot name somewhere, he can >> probably also store a numeric value. (Perhaps by saving the dlstat >> output to a scratch file.) > > I'd be happy with that as well. I'm only unhappy with the idea of > clearing statistics. We used to have that in netstat, and we got rid > of it on purpose.
To wander off on a related tangent... Sometimes clearing statistics can be useful... When I've had an Internet connection via an ISP that meters traffic (you have a 'quota' of x gb/month), I've run a cron job on the end-of-month day to dump out the output from ipfstat and clear the counters back to 0. Thus at any time during the month, using ipfstat gives me a reasonable approximation of the current quota use. Not being able to reset the number back to 0 would require storing the "snapshot" data somewhere and thus create a much more complex task of reviewing Internet use. There is a slight problem there of reboot interruptions, but they don't happen all that often ;) The act of reseting stats back to 0 also provides the user with the current value of said statistics. Darren