summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2015-02-10 20:06:22 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2015-02-10 20:06:22 +0100
commitac367da8a2c16dde071862ab781ec8e08d159d1a (patch)
tree06a13b71067c66f930aeddc485692ffb3622ab4a /widgets
parente1b0990494aecde926da9c237d3e6187f0ac02d4 (diff)
downloadskin-flatplus-ac367da8a2c16dde071862ab781ec8e08d159d1a.tar.gz
skin-flatplus-ac367da8a2c16dde071862ab781ec8e08d159d1a.tar.bz2
update system_information.g2v
Diffstat (limited to 'widgets')
-rwxr-xr-xwidgets/system_information/system_information.g2v8
1 files changed, 6 insertions, 2 deletions
diff --git a/widgets/system_information/system_information.g2v b/widgets/system_information/system_information.g2v
index e946acc0..7a7aa655 100755
--- a/widgets/system_information/system_information.g2v
+++ b/widgets/system_information/system_information.g2v
@@ -88,8 +88,12 @@ if [ $SHOW_UPTIME = 1 ]; then
if [ $TAGE -ge 1 ] ; then
echo "${TAGE}T ${STD}S ${MIN}M" > ${OUTPUTFLDR}/${UPTIME_POS}_uptime
else
- [ $STD -ge 1 ] && echo -n "${STD} Std. " > ${OUTPUTFLDR}/${UPTIME_POS}_uptime
- [ $MIN -ge 1 ] && echo "${MIN} Min." >> ${OUTPUTFLDR}/${UPTIME_POS}_uptime
+ if [ $STD -ge 1 ] ; then
+ [ $MIN -ge 1 ] && echo "${STD} Std. ${MIN} Min." > ${OUTPUTFLDR}/${UPTIME_POS}_uptime
+ [ $MIN -lt 1 ] && echo "${STD} Stunde(n)" > ${OUTPUTFLDR}/${UPTIME_POS}_uptime
+ else
+ [ $MIN -ge 1 ] && echo "${MIN} Minute(n)" > ${OUTPUTFLDR}/${UPTIME_POS}_uptime
+ fi
fi
[ ${UPTIME[0]} -le 59 ] && echo "${SEK} Sekunden" > ${OUTPUTFLDR}/${UPTIME_POS}_uptime
fi