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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/stats/functions.c b/src/plugins/stats/functions.c
index 08bb125c..851d544b 100644
--- a/src/plugins/stats/functions.c
+++ b/src/plugins/stats/functions.c
@@ -225,7 +225,7 @@ static int getTrafficRecvStats(const void * closure,
225 if (OK != getStatValue(&rlimit, 225 if (OK != getStatValue(&rlimit,
226 &lrlimit, 226 &lrlimit,
227 NULL, 227 NULL,
228 "# total advertised bytes per minute received limit")) { 228 "# total advertised bytes per second received limit")) {
229 rlimit = 0; 229 rlimit = 0;
230 lrlimit = 0; 230 lrlimit = 0;
231 } 231 }
@@ -252,7 +252,7 @@ static int getTrafficRecvStats(const void * closure,
252 data[0][2] = ((gfloat)(queries+content+noise)) / (banddown * dtime / cronSECONDS); /* yellow */ 252 data[0][2] = ((gfloat)(queries+content+noise)) / (banddown * dtime / cronSECONDS); /* yellow */
253 data[0][3] = ((gfloat)(queries+content+noise+hellos)) / (banddown * dtime / cronSECONDS); /* blue */ 253 data[0][3] = ((gfloat)(queries+content+noise+hellos)) / (banddown * dtime / cronSECONDS); /* blue */
254 data[0][4] = ((gfloat) total) / (banddown * dtime / cronSECONDS); /* gray */ 254 data[0][4] = ((gfloat) total) / (banddown * dtime / cronSECONDS); /* gray */
255 data[0][5] = ((gfloat) rlimit) / (banddown * dtime / cronSECONDS); /* magenta */ 255 data[0][5] = (gfloat) rlimit / banddown; /* magenta */
256#if 0 256#if 0
257 printf("I: %f %f %f %f\n", 257 printf("I: %f %f %f %f\n",
258 data[0][0], 258 data[0][0],
@@ -326,7 +326,7 @@ static int getTrafficSendStats(const void * closure,
326 if (OK != getStatValue(&slimit, 326 if (OK != getStatValue(&slimit,
327 &lslimit, 327 &lslimit,
328 NULL, 328 NULL,
329 "# total allowed bytes per minute transmission limit")) { 329 "# total allowed bytes per second transmission limit")) {
330 slimit = 0; 330 slimit = 0;
331 lslimit = 0; 331 lslimit = 0;
332 } 332 }
@@ -352,7 +352,7 @@ static int getTrafficSendStats(const void * closure,
352 data[0][2] = ((gfloat) (noise + content + queries)) / (bandup*dtime / cronSECONDS); /* yellow */ 352 data[0][2] = ((gfloat) (noise + content + queries)) / (bandup*dtime / cronSECONDS); /* yellow */
353 data[0][3] = ((gfloat) (noise + content + queries + hellos)) / (bandup*dtime / cronSECONDS); /* blue */ 353 data[0][3] = ((gfloat) (noise + content + queries + hellos)) / (bandup*dtime / cronSECONDS); /* blue */
354 data[0][4] = ((gfloat) total) / (bandup*dtime / cronSECONDS); /* grey */ 354 data[0][4] = ((gfloat) total) / (bandup*dtime / cronSECONDS); /* grey */
355 data[0][5] = ((gfloat) slimit) / (bandup*dtime / cronSECONDS); /* magenta */ 355 data[0][5] = ((gfloat) slimit) / bandup ; /* magenta */
356#if 0 356#if 0
357 printf("O: %f %f %f %f\n", 357 printf("O: %f %f %f %f\n",
358 data[0][0], 358 data[0][0],