mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Fix incorrect union member being used in check_space()
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user