Fix incorrect union member being used in check_space()

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-01-20 04:32:24 +01:00
parent 7b479782fd
commit ea8ef2aa1b
+1 -1
View File
@@ -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;