IMPR: Show available space on server test

This commit is contained in:
Tony Air 2022-03-09 11:09:12 +02:00
parent e6f658f8d0
commit 383029df24
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class TestServer extends BuildTask
if (is_writable(TEMP_FOLDER)) { if (is_writable(TEMP_FOLDER)) {
echo self::success( echo self::success(
'TMP (cache) dir <b>'.TEMP_FOLDER.'</b> dir is writable.' 'TMP (cache) dir <b>'.TEMP_FOLDER.'</b> dir is writable.'
.'Available space: '.self::formatBytes(disk_free_space(TEMP_FOLDER)) .' Available space: '.self::formatBytes(disk_free_space(TEMP_FOLDER))
); );
} else { } else {
echo self::error('TMP (cache) dir <b>'.TEMP_FOLDER.'</b> dir is no writable!'); echo self::error('TMP (cache) dir <b>'.TEMP_FOLDER.'</b> dir is no writable!');
@ -80,7 +80,7 @@ class TestServer extends BuildTask
if (is_writable(ASSETS_DIR)) { if (is_writable(ASSETS_DIR)) {
echo self::success( echo self::success(
'Assets dir <b>'.ASSETS_DIR.'</b> dir is writable.' 'Assets dir <b>'.ASSETS_DIR.'</b> dir is writable.'
.'Available space: '.self::formatBytes(disk_free_space(ASSETS_DIR)) .' Available space: '.self::formatBytes(disk_free_space(ASSETS_DIR))
); );
} else { } else {
echo self::error('Assets dir <b>'.ASSETS_DIR.'</b> dir is no writable!'); echo self::error('Assets dir <b>'.ASSETS_DIR.'</b> dir is no writable!');