Network monthly totals buglet

There was a report in the forum that the monthly totals reported in the network tray applet do not reset at the end of the month in Lucid Puppy 5.1.1.

I responded that perhaps the implementation is broken in Lucid, and to try Wary 0.9.

I am running Wary right now, and I did a test, put the date forward then rebooted, and the totals did reset to zero.

But, I thought has occurred to me. The reset only occurs at bootup, so if someone has their computer running continuously, over a month change, the totals won't reset. They will only reset at the next boot.

Hmmm, perhaps I need to add code into the network tray applet to fix this. I always turn my computer off after use. Anyone else leave theirs running?


Posted on 13 Oct 2010, 8:48


Comments:

Posted on 13 Oct 2010, 13:30 by zygo
non-calendar months
Also users of 3G have non-calendar months.


Posted on 13 Oct 2010, 14:52 by 8-bit
Computer running
That may explain some things as I may have had my computer running at the end of the month and actually using it when time rolled over to the next month.
So you are saying if I read right, that if I have my PC on from before midnight of the end of a month and have not shut it down when the new month starts, the totals will not reset?

Is the tray applet a script or a binary file and what is it called?



Posted on 13 Oct 2010, 18:35 by BarryK
It will reset
8-bit,
It will detect a new month when you reboot, and will reset. However the tally transferred in the new month before you rebooted will be lost, so you will get a slightly wrong reading for the new month.



Posted on 14 Oct 2010, 5:28 by Bm
Network monthly total
I power off my PC after every use.


Posted on 14 Oct 2010, 8:09 by BarryK
Re tray applet
The network tray applet is a binary file /root/Startup/network_tray.

The month-rollover reset is performed in /etc/rc.d/rc.sysinit at bootup.

I have this in my to-do list to improve.