Remove an automatic restart of the apps.plugin (#8592)
Vladimir Kobal committed
Apr 6, 2020 at 09:28 UTC
5e766c5ae16bcddd15e5656ac759784af03d9fdf
1 file changed
-5
collectors/apps.plugin/apps_plugin.c
-5
@@ -4110,8 +4110,6 @@ int main(int argc, char **argv) {
4110
4111
procfile_adaptive_initial_allocation = 1;
4112
4113
- time_t started_t = now_monotonic_sec();
4114
-
4113
get_system_HZ();
4114
#ifdef __FreeBSD__
4115
time_factor = 1000000ULL / RATES_DETAIL; // FreeBSD uses usecs
@@ -4212,8 +4210,5 @@ int main(int argc, char **argv) {
4210
show_guest_time_old = show_guest_time;
4211
4212
debug_log("done Loop No %zu", global_iterations_counter);
4215
-
4216
- // restart check (14400 seconds)
4217
- if(now_monotonic_sec() - started_t > 14400) exit(0);
4213
}
4214
}