From 5346bbc9358afcadfc4fe111564797578d06fde2 Mon Sep 17 00:00:00 2001 From: Nick Savage Date: Sat, 14 Jan 2017 13:33:45 -0500 Subject: [PATCH] StorageStat: Improve output #2486 This improves the output a little of StorageStat to make it easily read. --- plugins/storagestat.koplugin/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/storagestat.koplugin/main.lua b/plugins/storagestat.koplugin/main.lua index 2f8ed5723..41bad65d0 100644 --- a/plugins/storagestat.koplugin/main.lua +++ b/plugins/storagestat.koplugin/main.lua @@ -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