|
|
@ -44,14 +44,14 @@ function SystemStat:appendCounters()
|
|
|
|
if self.resume_sec then
|
|
|
|
if self.resume_sec then
|
|
|
|
self:put({_(" Last resume time"), os.date("%c", self.resume_sec)})
|
|
|
|
self:put({_(" Last resume time"), os.date("%c", self.resume_sec)})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
self:put({_(" Up time"),
|
|
|
|
self:put({" " .. _("Up time"),
|
|
|
|
util.secondsToClockDuration("", os.difftime(os.time(), self.start_sec), false, true, true)})
|
|
|
|
util.secondsToClockDuration("", os.difftime(os.time(), self.start_sec), false, true, true)})
|
|
|
|
if Device:canSuspend() then
|
|
|
|
if Device:canSuspend() then
|
|
|
|
self:put({_(" Time in suspend"),
|
|
|
|
self:put({" " .. _("Time in suspend"),
|
|
|
|
util.secondsToClockDuration("", Device.total_suspend_tv:tonumber(), false, true, true)})
|
|
|
|
util.secondsToClockDuration("", Device.total_suspend_tv:tonumber(), false, true, true)})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if Device:canStandby() then
|
|
|
|
if Device:canStandby() then
|
|
|
|
self:put({_(" Time in standby"),
|
|
|
|
self:put({" " .. _("Time in standby"),
|
|
|
|
util.secondsToClockDuration("", Device.total_standby_tv:tonumber(), false, true, true)})
|
|
|
|
util.secondsToClockDuration("", Device.total_standby_tv:tonumber(), false, true, true)})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
self:put({_("Counters"), ""})
|
|
|
|
self:put({_("Counters"), ""})
|
|
|
|