summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/image.c b/src/server/image.c
index 172a0f3..a5ce4bd 100644
--- a/src/server/image.c
+++ b/src/server/image.c
@@ -1202,7 +1202,7 @@ static int image_ensureDiskSpace(uint64_t size)
}
image_release( current );
}
- if ( oldest == NULL ) return FALSE;
+ if ( oldest == NULL || mtime == 0 || time(NULL) - mtime < 86400 ) return FALSE;
oldest = image_lock( oldest );
if ( oldest == NULL ) return FALSE;
memlogf( "[INFO] '%s' has to go!", oldest->lower_name );