Simple fix for the swap plugin. This needs to go into 3.9.1
authorocto <octo>
Fri, 21 Apr 2006 06:47:17 +0000 (06:47 +0000)
committerocto <octo>
Fri, 21 Apr 2006 06:47:17 +0000 (06:47 +0000)
src/swap.c

index b7fc7ed..5812b59 100644 (file)
@@ -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);