From ea8ef2aa1b8c2b83f345a7f0c52febc8ef6a99c1 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 20 Jan 2023 04:32:24 +0100 Subject: [PATCH] Fix incorrect union member being used in check_space() Signed-off-by: DL6ER --- src/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gc.c b/src/gc.c index 477be0cf..baeb7458 100644 --- a/src/gc.c +++ b/src/gc.c @@ -90,7 +90,7 @@ static int check_space(const char *file, int LastUsage) // exceeds the configured threshold and current usage is higher than // usage in the last run (to prevent log spam) perc = get_filepath_usage(file, buffer); - if(perc > config.misc.check.disk.v.b && perc > LastUsage ) + if(perc > config.misc.check.disk.v.i && perc > LastUsage ) log_resource_shortage(-1.0, 0, -1, perc, file, buffer); return perc;