diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/image.c | 2 |
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 ); |