diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2013-11-06 19:52:54 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2013-11-06 19:52:54 +0100 |
commit | 4837373eaba18dcab8fd39d1c3a8f4c5c9a83e8b (patch) | |
tree | 142d856900d65b70618f2cab948b10a711cf4e72 | |
parent | 11e6acd1be1276b301535d2c6f5095f542ca0e9c (diff) | |
download | skin-flatplus-4837373eaba18dcab8fd39d1c3a8f4c5c9a83e8b.tar.gz skin-flatplus-4837373eaba18dcab8fd39d1c3a8f4c5c9a83e8b.tar.bz2 |
add free minutes in disk usage
-rw-r--r-- | displaymenu.c | 5 | ||||
-rw-r--r-- | po/de_DE.po | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/displaymenu.c b/displaymenu.c index fe0ab134..d7bfec18 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -103,9 +103,10 @@ void cFlatDisplayMenu::SetTitle(const char *Title) { if( (menuCategory == mcRecording || menuCategory == mcTimer) && Config.DiskUsageShow ) { cVideoDiskUsage::HasChanged(VideoDiskUsageState); int DiskUsage = cVideoDiskUsage::UsedPercent(); - int FreeGB = cVideoDiskUsage::FreeMB() / 1024; + double FreeGB = cVideoDiskUsage::FreeMB() / 1024.0; + int FreeMinutes = cVideoDiskUsage::FreeMinutes(); cString extra1 = cString::sprintf("%s: %d%%", tr("disk usage"), DiskUsage); - cString extra2 = cString::sprintf("%s: %d GB", tr("free space"), FreeGB); + cString extra2 = cString::sprintf("%s: %.1f GB ~ %02d:%02d", tr("free"), FreeGB, FreeMinutes / 60, FreeMinutes % 60); cString iconName("chart1"); if( DiskUsage > 14 ) diff --git a/po/de_DE.po b/po/de_DE.po index 49e2bdad..b8cd81e4 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -21,8 +21,8 @@ msgstr "Uhr" msgid "disk usage" msgstr "Plattennutzung" -msgid "free space" -msgstr "freier Platz" +msgid "free" +msgstr "frei" msgid "Volume" msgstr "Lautstärke" |