diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2022-12-09 18:56:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 18:56:48 +0200 |
commit | c728bfc1eb00a662a24010d2b33e287d44d2a09b (patch) | |
tree | 8c2064f3d5955d9456943c78c3de4a8c9f767c44 /collectors/apps.plugin | |
parent | 32d63fe9a6a18c9e757499f0e23a1169b516f9bf (diff) |
fix get_system_cpus() (#14116)
Diffstat (limited to 'collectors/apps.plugin')
-rw-r--r-- | collectors/apps.plugin/apps_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/apps.plugin/apps_plugin.c b/collectors/apps.plugin/apps_plugin.c index 4de5915fd4..75f4a50685 100644 --- a/collectors/apps.plugin/apps_plugin.c +++ b/collectors/apps.plugin/apps_plugin.c @@ -3359,7 +3359,7 @@ static void normalize_utilization(struct target *root) { // here we try to eliminate them by disabling childs processing either for specific dimensions // or entirely. Of course, either way, we disable it just a single iteration. - kernel_uint_t max_time = processors * time_factor * RATES_DETAIL; + kernel_uint_t max_time = get_system_cpus() * time_factor * RATES_DETAIL; kernel_uint_t utime = 0, cutime = 0, stime = 0, cstime = 0, gtime = 0, cgtime = 0, minflt = 0, cminflt = 0, majflt = 0, cmajflt = 0; if(global_utime > max_time) global_utime = max_time; @@ -4898,7 +4898,7 @@ int main(int argc, char **argv) { #endif get_system_pid_max(); - get_system_cpus(); + get_system_cpus_uncached(); parse_args(argc, argv); |