mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
StorageStat: Improve output #2486
This improves the output a little of StorageStat to make it easily read.
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user