[collectd] swap.c fix for 3.9.0
Christophe Kalt
collectd at klb.taranis.org
Wed Apr 19 19:30:19 CEST 2006
Silly bug.
-------------- next part --------------
--- .snapshot/hourly.0/swap.c 2006-04-18 03:17:10.000000000 -0400
+++ swap.c 2006-04-19 13:18:38.016452000 -0400
@@ -82,8 +82,9 @@
{
char buffer[512];
- if (snprintf (buffer, 512, "N:%llu:%llu:%llu:%llu", swap_used,
- swap_free, swap_cached, swap_resv) >= 512)
+ if (snprintf (buffer, 512, "%u:%llu:%llu:%llu:%llu",
+ (unsigned int) curtime, swap_used,
+ swap_free, swap_cached, swap_resv) >= 512)
return;
plugin_submit (MODULE_NAME, "-", buffer);
More information about the collectd
mailing list