-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling accidental shutdowns #3
Comments
The The You are probably right that a cron job would not have adverse effects; however it is not needed. The interval used in the UI is only needed by the speed columns. |
I'm still going through the wrtbmon codebase, but still confused. Where does wrtbmon persist the data between reboots? Wont the |
Ok, so looks like a reboot doesn't persist. Yesterday (I had some data for sure): Today:
|
I see now what you are trying to do. I don't think the cron job will be able to persist the data. This is because In my opinion the above is the correct way of handling data for your router. Storing a db file in any other place than the However, I'm open to suggestions if you have something in your mind that can "solve" your problem, without adding installation overhead (i.e. tricky configuration steps). |
Maybe just having a configurable option on the location of the file. The |
I haven't setup a cron yet (as recommended), but I was wondering if the router goes down accidentally (say, on power loss) and I haven't checked the web-interface in a while, then the
update/publish
cycle won't get called.Which means that the graphs would be inaccurate on the next reboot.
I think the wrtbmon code already has a lockfile, so running
update/publish
on a cron shouldn't have any adverse affects either.The text was updated successfully, but these errors were encountered: