Skip to content

Commit

Permalink
Merge pull request #1556 from pi-hole/fix/macOS_exabytes
Browse files Browse the repository at this point in the history
Do not log unrealistic disk usage (docker + macOS bug)
  • Loading branch information
DL6ER committed May 8, 2023
2 parents f8dbd2b + 51ca8f3 commit b847da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ 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.check.disk && perc > LastUsage )
if(perc > config.check.disk && perc > LastUsage && perc <= 100.0)
log_resource_shortage(-1.0, 0, -1, perc, file, buffer);

return perc;
}

Expand Down

0 comments on commit b847da4

Please sign in to comment.