StorageStat: Improve output #2486

This improves the output a little of StorageStat to make it easily read.
pull/2492/head
Nick Savage 8 years ago committed by Qingping Hou
parent fe5379814d
commit 5346bbc935

@ -24,8 +24,8 @@ local StorageStat = WidgetContainer:new{
callback = function()
local std_out = io.popen(
"df -h | sed -r 's/ +/ /g' | grep " .. filter ..
" | cut -d ' ' -f 3,4,5,6 | " ..
"awk '{print $4 \" U\" $1 \" F\" $2 \" P\" $3}'"
" | cut -d ' ' -f 2,3,4,5 | " ..
"awk '{print \"Internal Storage: \\n Available: \" $3\"/\" $1 \"\\n Used: \" $4}'"
)
local msg
if std_out then

Loading…
Cancel
Save