From 1c67ae92604d3355ad6a43f8b29860baf98d974c Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 4 Oct 2015 04:33:10 +0200 Subject: [PATCH] Avoid a compilation warning --- src/plugins/volumes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/volumes.c b/src/plugins/volumes.c index 10b81fb..7ab7ee3 100644 --- a/src/plugins/volumes.c +++ b/src/plugins/volumes.c @@ -398,7 +398,7 @@ static void _list_add(Volumes * volumes, char const * name, char const * device, fraction = total - free; fraction = fraction / total; f = fraction * 100; - snprintf(buf, sizeof(buf), "%.1lf%%", fraction * 100.0); + snprintf(buf, sizeof(buf), "%.1f%%", fraction * 100.0); } _list_add_size(buf2, sizeof(buf2), bsize, total); _list_get_iter(volumes, &iter, mountpoint);