Hi all,
on my ntop system there was a constant load of ca. 45MByte/s and the RRD
graphs for the ethernet and the ip bytes looked weird (sometimes zero but my
snmp interface counters told other things). The attached patch fixes it for
me.
Cheers
Markus
--- ntop/plugins/rrdPlugin.c 2004-11-01 10:11:11.000000000 +0100
+++ ntop-dev/plugins/rrdPlugin.c 2004-11-02 19:27:19.175459720 +0100
@@ -1094,7 +1094,7 @@
if((!createdCounter) && (numRuns == 1)) {
return;
} else {
- safe_snprintf(__FILE__, __LINE__, cmd, sizeof(cmd), "%u:%u", rrdTime, (unsigned long)value);
+ safe_snprintf(__FILE__, __LINE__, cmd, sizeof(cmd), "%u:%Lu", rrdTime, value);
}
argv[argc++] = cmd;
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev