value is defined as 'Counter value', so the proper mask is %llu not %Lu.

Otherwise, it seems reasonable provided rrd can parse an llu.

-----Burton

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Markus Rehbach
> Sent: Tuesday, November 02, 2004 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: [Ntop-dev] Patch for RRD data ranges (now inline...;-)
> 
> 
> --- 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;
> 
> 
> ----------  Forwarded Message  ----------
> 
> Subject: Patch for RRD data ranges
> Date: Tuesday 02 November 2004 19:35
> From: Markus Rehbach <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> 
> 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-dev mailing list
> [EMAIL PROTECTED]
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to