Bagman
Regular Contributor
I've got a feature request for traffic stats. Like a lot of people, I log my stats to a USB device.
I've noticed that when you reboot the router, you lose any record of traffic stats since the last time the stats were written out to disk/jffs. Would it be possible for you to change it so that when the unit is rebooted, it writes the stats out if they are stored somewhere other than RAM before it actually reboots?
Obviously this won't make any difference if the router crashes, or is manually powered off, but for normal GUI driven reboots or when upgrading firmware, it means the user doesn't lose up to an hour of traffic stats.
I don't know if you would want to implement it the same for anything that happens over the command line when telnetted into the router, or just allow normal reboot/shutdown commands as is. I'd be quite happy if it was just the GUI was clever enough to write out stats if asked to reboot.
I've noticed that when you reboot the router, you lose any record of traffic stats since the last time the stats were written out to disk/jffs. Would it be possible for you to change it so that when the unit is rebooted, it writes the stats out if they are stored somewhere other than RAM before it actually reboots?
Obviously this won't make any difference if the router crashes, or is manually powered off, but for normal GUI driven reboots or when upgrading firmware, it means the user doesn't lose up to an hour of traffic stats.
I don't know if you would want to implement it the same for anything that happens over the command line when telnetted into the router, or just allow normal reboot/shutdown commands as is. I'd be quite happy if it was just the GUI was clever enough to write out stats if asked to reboot.