use diff for YieldTotal

This commit is contained in:
john30
2016-12-10 16:52:11 +01:00
parent 7eea80002e
commit 42c3d558c0
+1 -1
View File
@@ -75,7 +75,7 @@ if [ "$1" = "config" ]; then
fi
name=${sensor/:/_}
name=${name/./_}
if [ "${sensor%%Energy}" = "$sensor" -a ! "$type" = "hours" ]; then
if [ "${sensor%%Total}" = "$sensor" -a ! "$type" = "hours" ]; then
echo ${prefix}_${name}.label ${sensor/:/ }
else
echo ${prefix}_${name}.label ${sensor/:/ } "[diff]"