From 74506bdaa387502dc7e1984c0f7d05a45ba69793 Mon Sep 17 00:00:00 2001 From: jgaunt Date: Fri, 20 Nov 2020 12:02:34 -0500 Subject: [PATCH] add last update time --- pfsenseDellBatteryNUT.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pfsenseDellBatteryNUT.sh b/pfsenseDellBatteryNUT.sh index 9192442..2503a51 100644 --- a/pfsenseDellBatteryNUT.sh +++ b/pfsenseDellBatteryNUT.sh @@ -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}