aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/stats/functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/stats/functions.c')
-rw-r--r--src/plugins/stats/functions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/stats/functions.c b/src/plugins/stats/functions.c
index 9be3bba7..ffb99733 100644
--- a/src/plugins/stats/functions.c
+++ b/src/plugins/stats/functions.c
@@ -333,7 +333,7 @@ static int getEffectivenessStats(const void * closure,
333 long long lsuccess; 333 long long lsuccess;
334 long long llocal; 334 long long llocal;
335 cron_t now; 335 cron_t now;
336 336
337 now = get_time(); 337 now = get_time();
338 if (now < last + 2 * cronMINUTES) { 338 if (now < last + 2 * cronMINUTES) {
339 data[0][0] = lastdata; 339 data[0][0] = lastdata;
@@ -364,8 +364,8 @@ static int getEffectivenessStats(const void * closure,
364 data[0][1] = 0.0; 364 data[0][1] = 0.0;
365 return OK; 365 return OK;
366 } 366 }
367 if (total == 0) 367 if (total == 0)
368 return OK; 368 return OK;
369 success -= lsuccess; 369 success -= lsuccess;
370 local -= llocal; 370 local -= llocal;
371 if (success <= local) 371 if (success <= local)