Avoid a compilation warning

This commit is contained in:
Pierre Pronchery 2015-10-04 04:33:10 +02:00
parent 1361896c8f
commit 1c67ae9260

View File

@ -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);