From 14be57f0361ec0bb6e4829f57edadeb9b1686ba7 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Mon, 25 May 2020 21:17:08 +0200 Subject: [PATCH] Fix previous commit --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 2c331fc..e0e8232 100644 --- a/src/main.c +++ b/src/main.c @@ -109,13 +109,13 @@ init_timeout (void) used = g_format_size_full(memory_used, G_FORMAT_SIZE_IEC_UNITS); total = g_format_size_full(memory_total, G_FORMAT_SIZE_IEC_UNITS); - g_snprintf (memory_info, sizeof(memory_info), "%.0f%% (%s / %s)", used, total, memory_percent); + g_snprintf (memory_info, sizeof(memory_info), "%.0f%% (%s / %s)", memory_percent, used, total); g_free(used); g_free(total); used = g_format_size_full(swap_used, G_FORMAT_SIZE_IEC_UNITS); total = g_format_size_full(swap_total, G_FORMAT_SIZE_IEC_UNITS); - g_snprintf (swap_info, sizeof(swap_info), "%.0f%% (%s / %s)", used, total, swap_percent); + g_snprintf (swap_info, sizeof(swap_info), "%.0f%% (%s / %s)", swap_percent, used, total); g_free(used); g_free(total);