mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Improve several outputs
This commit is contained in:
@@ -476,9 +476,9 @@ function FileManager:getSortingMenuTable()
|
||||
local fm = self
|
||||
local collates = {
|
||||
strcoll = {_("title"), _("Sort by title")},
|
||||
access = {_("date read"), _("Sort by date of last read")},
|
||||
change = {_("date added"), _("Sort by date of adding")},
|
||||
modification = {_("date modified"), _("Sort by date of modification")},
|
||||
access = {_("date read"), _("Sort by last read date")},
|
||||
change = {_("date added"), _("Sort by date added")},
|
||||
modification = {_("date modified"), _("Sort by date modified")},
|
||||
size = {_("size"), _("Sort by size")},
|
||||
type = {_("type"), _("Sort by type")},
|
||||
}
|
||||
|
||||
@@ -8,6 +8,8 @@ if Device:isKobo() or Device:isPocketBook() then
|
||||
filter = "mmcblk"
|
||||
elseif Device:isKindle() then
|
||||
filter = "' /mnt/us$'"
|
||||
elseif Device:isSDL() then
|
||||
filter = "/dev/sd"
|
||||
else
|
||||
return { disabled = true, }
|
||||
end
|
||||
@@ -24,8 +26,8 @@ local StorageStat = WidgetContainer:new{
|
||||
callback = function()
|
||||
local std_out = io.popen(
|
||||
"df -h | sed -r 's/ +/ /g' | grep " .. filter ..
|
||||
" | cut -d ' ' -f 2,3,4,5 | " ..
|
||||
"awk '{print \"Internal Storage: \\n Available: \" $3\"/\" $1 \"\\n Used: \" $4}'"
|
||||
" | cut -d ' ' -f 2,3,4,5,6 | " ..
|
||||
"awk '{print $5\": \\n Available: \" $3\"/\" $1 \"\\n Used: \" $4}'"
|
||||
)
|
||||
local msg
|
||||
if std_out then
|
||||
|
||||
Reference in New Issue
Block a user