]> mj.ucw.cz Git - arexx.git/commitdiff
Home: More formatting changes
authorMartin Mares <mj@ucw.cz>
Tue, 29 Jan 2013 22:08:31 +0000 (23:08 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 29 Jan 2013 22:08:31 +0000 (23:08 +0100)
web/temp-12h.cgi

index 4374a12ef7450c66eb5db9e13964ad9f15d47404..e1d92a98397838b5d1d8d1f2f8ff22d4736a8ae3 100755 (executable)
@@ -7,9 +7,9 @@ current ()
 {
        Z=$(rrdtool fetch $1 AVERAGE -s-5min -r900 | grep : | grep -v nan | tail -1 | cut -d ' ' -f 2)
        if [ -z "$Z" ] ; then
-               echo -n "---"
+               echo -n "---"
        else
-               printf "%5.1f" "$Z"
+               printf "%4.1f°" "$Z"
        fi
 }
 
@@ -42,12 +42,12 @@ exec rrdtool graph - \
        'COMMENT:\s' \
        'COMMENT:\s' \
        'COMMENT:\s' \
-       'COMMENT:<span foreground="#cc0000" font-size="x-large" weight="bold">'"$(current $D/sensor-catarium.rrd)"'°</span>\l' \
+       'COMMENT:<span foreground="#cc0000" font-size="x-large" weight="bold">'"$(current $D/sensor-catarium.rrd)"'</span>\l' \
        'COMMENT:\s' \
-       'COMMENT:<span foreground="#0000cc" font-size="x-large" weight="bold">'"$(current $D/sensor-ursarium.rrd)"'°</span>\l' \
+       'COMMENT:<span foreground="#0000cc" font-size="x-large" weight="bold">'"$(current $D/sensor-ursarium.rrd)"'</span>\l' \
        'COMMENT:\s' \
-       'COMMENT:<span foreground="#00cccc" font-size="x-large" weight="bold">'"$(current $D/sensor-aquarium.rrd)"'°</span>\l' \
+       'COMMENT:<span foreground="#00cccc" font-size="x-large" weight="bold">'"$(current $D/sensor-aquarium.rrd)"'</span>\l' \
        'COMMENT:\s' \
-       'COMMENT:<span foreground="#cc00cc" font-size="x-large" weight="bold">'"$(current $D/sensor-balcony.rrd)"'°</span>\l' \
+       'COMMENT:<span foreground="#cc00cc" font-size="x-large" weight="bold">'"$(current $D/sensor-balcony.rrd)"'</span>\l' \
        'COMMENT:\s' \
-       'COMMENT:<span foreground="#00cc00" font-size="x-large" weight="bold">'"$(current $D/sensor-outside.rrd)"'°</span>\l' \
+       'COMMENT:<span foreground="#00cc00" font-size="x-large" weight="bold">'"$(current $D/sensor-outside.rrd)"'</span>\l' \