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}