undervoltage warnings

This commit is contained in:
Christian Rotzoll
2019-03-15 15:54:47 +01:00
parent 215deda60d
commit e37e01ec05

View File

@@ -290,6 +290,6 @@ ${color_yellow}${ln_publicColor}${ln_external}
"load average:${load##up*, }" "${temp}" \
"${hdd}" "${sync_percentage}"
if [ ${#undervoltageReports} -gt 0 ]; then
echo "${countReports} undervoltage reports found in syslog"
if [ ${#undervoltageReports} -gt 0 ] && [ "${undervoltageReports}" != "0" ]; then
echo "${undervoltageReports} undervoltage reports found in syslog"
fi