reverted last change because it caused more problems than good
This commit is contained in:
parent
36cbdf6ba8
commit
ce4d2af94f
|
@ -149,8 +149,9 @@ function check_disk_usage()
|
||||||
log "listing usage of $shared_disk_root into $disk_usage_report_file_path"
|
log "listing usage of $shared_disk_root into $disk_usage_report_file_path"
|
||||||
du -sm ${shared_disk_root}/* | tee "${tmp_disk_usage_report_file_path}"
|
du -sm ${shared_disk_root}/* | tee "${tmp_disk_usage_report_file_path}"
|
||||||
|
|
||||||
cat ${tmp_disk_usage_report_file_path} | sed "s|${shared_disk_root}|${disk_public_path}|g" | awk '{ printf("%s ", $1); system("stat --printf=''%U'' " $2); printf(" %s\n", $2); }' > "${disk_usage_report_file_path}"
|
cat ${tmp_disk_usage_report_file_path} | awk '{ printf("%s ", $1); system("stat --printf=''%U'' " $2); printf(" %s\n", $2); }' > "${disk_usage_report_file_path}"
|
||||||
rm "${tmp_disk_usage_report_file_path}"
|
rm "${tmp_disk_usage_report_file_path}"
|
||||||
|
# sed "s|${shared_disk_root}|${disk_public_path}|g" |
|
||||||
|
|
||||||
local disk_fullness=$(sheet_get_column $disk_global_usage_report_file_path 'Use%' | sed 's/%//')
|
local disk_fullness=$(sheet_get_column $disk_global_usage_report_file_path 'Use%' | sed 's/%//')
|
||||||
local disk_size_in_mb=$(sheet_get_column $disk_global_usage_report_file_path '1M-blocks' | sed 's/%//')
|
local disk_size_in_mb=$(sheet_get_column $disk_global_usage_report_file_path '1M-blocks' | sed 's/%//')
|
||||||
|
|
Loading…
Reference in New Issue