diff --git a/server/bc-server.cpp b/server/bc-server.cpp index 10bc73ce..9b0b7250 100644 --- a/server/bc-server.cpp +++ b/server/bc-server.cpp @@ -1189,12 +1189,12 @@ static int bc_cleanup_media() static int bc_check_media(void) { int ret = 0; - bool storage_overloaded = true; + bool storage_overloaded = false; /* If there's some space left, skip cleanup */ for (int i = 0; i < MAX_STOR_LOCS && media_stor[i].max_thresh; i++) { - if (is_storage_full(&media_stor[i]) != 1) { - storage_overloaded = false; + if (is_storage_full(&media_stor[i]) == 1) { + storage_overloaded = true; break; } }