add last update time

This commit is contained in:
2020-11-20 12:02:34 -05:00
parent b10b0b543e
commit 74506bdaa3

View File

@@ -23,8 +23,8 @@ elif [ ${BATTERY_STATE} = 'charging' ]; then
BATTERY_STATE='OL'
fi
echo "battery.charge: ${BATTERY_PERCENT_LEVEL}" > ${FILE_LOCATION}
echo "# Last Updated: $(date)" > ${FILE_LOCATION}
echo "battery.charge: ${BATTERY_PERCENT_LEVEL}" >> ${FILE_LOCATION}
echo "battery.runtime: ${BATTERY_RUNTIME}" >> ${FILE_LOCATION}
echo "ups.mfr: ${UPS_MFR}" >> ${FILE_LOCATION}
echo "ups.model: ${UPS_MODEL}" >> ${FILE_LOCATION}