Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved autosnapshot into autoupdate. Made autoupdate also reload pixel…
…Trackers.txt every 4 min.
- Loading branch information
1 parent
43272eb
commit a7ccb44
Showing
3 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
int autoupdateTime = 4; // how often to do the autoupdate, in minutes | ||
int lastAutoupdateTime = -1; | ||
void autoupdate() { | ||
int m = minute(); | ||
if (m % autoupdateTime == 0) { | ||
if (m != lastAutoupdateTime) { | ||
// do an auto update | ||
saveSnapshot(); | ||
loadPixelTrackers(); | ||
|
||
lastAutoupdateTime = m; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters