exit every 4 hours
Costa Tsaousis committed
Jan 25, 2016 at 22:44 UTC
c683a6c60d340cd19c843aadfff86f2a0c05de3a
1 file changed
+2
-1
src/apps_plugin.c
+2
-1
@@ -1975,7 +1975,8 @@ int main(int argc, char **argv)
1975
usleep((__useconds_t) susec);
1976
bcopy(&now, &last, sizeof(struct timeval));
1977
1978
+ // restart once per day (14400 seconds)
1979
current_t = time(NULL);
1979
- if(current_t - started_t > 3600) exit(0);
1980
+ if(current_t - started_t > 14400) exit(0);
1981
}
1982
}