Don't return of disk_free_space returns false, just log it.

This commit is contained in:
Isaac Connor 2016-04-28 09:29:40 -04:00
parent d847d66e99
commit 5e20831030
1 changed files with 0 additions and 1 deletions

View File

@ -1679,7 +1679,6 @@ function getDiskPercent()
$free = disk_free_space(ZM_DIR_EVENTS);
if ( ! $free ) {
Error("disk_free_space returned false for " . ZM_DIR_EVENTS );
return 0;
}
$space = round(($total - $free) / $total * 100);
return( $space );