]> arthur.barton.de Git - netdata.git/commitdiff
exit every 4 hours
authorCosta Tsaousis <costa@tsaousis.gr>
Mon, 25 Jan 2016 20:44:51 +0000 (22:44 +0200)
committerCosta Tsaousis <costa@tsaousis.gr>
Mon, 25 Jan 2016 20:44:51 +0000 (22:44 +0200)
src/apps_plugin.c

index 15afe232caa96231c4c7ed738bb374ae926aa25d..b572bb2927cabe65525cfd2241311cd1d2fb9734 100755 (executable)
@@ -1975,7 +1975,8 @@ int main(int argc, char **argv)
                usleep((__useconds_t) susec);
                bcopy(&now, &last, sizeof(struct timeval));
 
+               // restart once per day (14400 seconds)
                current_t = time(NULL);
-               if(current_t - started_t > 3600) exit(0);
+               if(current_t - started_t > 14400) exit(0);
        }
 }