From: octo Date: Fri, 21 Apr 2006 06:47:17 +0000 (+0000) Subject: Simple fix for the swap plugin. This needs to go into 3.9.1 X-Git-Tag: svn-trunk~64 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9fc12ff2770846d3ac2a5abed4c611dd51fd3bbd;p=collectd.git Simple fix for the swap plugin. This needs to go into 3.9.1 --- diff --git a/src/swap.c b/src/swap.c index b7fc7ed0..5812b59c 100644 --- a/src/swap.c +++ b/src/swap.c @@ -82,8 +82,8 @@ static void swap_submit (unsigned long long swap_used, { 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);