summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2022-09-07 00:37:35 +0300
committerGitHub <noreply@github.com>2022-09-07 00:37:35 +0300
commitb16df94494fc30a78fa27f512f7f72e0fb479f1e (patch)
treef2c9842225cf68eb9ca83cbb9db0f32997bbbfea /daemon
parentc7d2732ebfc98919894aa1f24c6ecfaafbdb6fb1 (diff)
Fix worker utilization cleanup (#13633)
Diffstat (limited to 'daemon')
-rw-r--r--daemon/global_statistics.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/daemon/global_statistics.c b/daemon/global_statistics.c
index cb6cc88388..49c32d119d 100644
--- a/daemon/global_statistics.c
+++ b/daemon/global_statistics.c
@@ -1863,7 +1863,7 @@ static void worker_utilization_charts(void) {
}
static void worker_utilization_finish(void) {
- int i;
+ int i, j;
for(i = 0; all_workers_utilization[i].name ;i++) {
struct worker_utilization *wu = &all_workers_utilization[i];
@@ -1872,12 +1872,12 @@ static void worker_utilization_finish(void) {
wu->name_lowercase = NULL;
}
- for(i = 0; i < WORKER_UTILIZATION_MAX_JOB_TYPES ;i++) {
- string_freez(wu->per_job_type[i].name);
- wu->per_job_type[i].name = NULL;
+ for(j = 0; j < WORKER_UTILIZATION_MAX_JOB_TYPES ;j++) {
+ string_freez(wu->per_job_type[j].name);
+ wu->per_job_type[j].name = NULL;
- string_freez(wu->per_job_type[i].units);
- wu->per_job_type[i].units = NULL;
+ string_freez(wu->per_job_type[j].units);
+ wu->per_job_type[j].units = NULL;
}
// mark all threads as not enabled