From 4da26fc3c61caca0943b896b2557989c138c95d1 Mon Sep 17 00:00:00 2001 From: haturatu Date: Tue, 25 Jun 2024 20:25:05 +0900 Subject: [PATCH] fix --- src/storage.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/storage.c b/src/storage.c index f331603..24a86f0 100644 --- a/src/storage.c +++ b/src/storage.c @@ -12,11 +12,10 @@ const char *display_storage() { return run_command_s("df -h | " "awk '/^\\/dev\\// {printf \"%s: %s / %s, \", $1, $3, $2}' | " "awk '{sub(/, $/, \"\"); print}'"); - } else { + } - free((void *)excode); - return run_command_s("zpool list | " - "awk 'NR>1 {printf \"%s: %s / %s, \", $1, $3, $2}' | " - "awk '{sub(/, $/, \"\"); print}'"); - } + free((void *)excode); + return run_command_s("zpool list | " + "awk 'NR>1 {printf \"%s: %s / %s, \", $1, $3, $2}' | " + "awk '{sub(/, $/, \"\"); print}'"); }