Small comment updates + fix

This commit is contained in:
Patrick Van der Veken 2018-09-25 11:00:30 +02:00
parent 907e45137b
commit cc9efabb68
3 changed files with 3 additions and 4 deletions

View File

@ -121,7 +121,6 @@ print -R "${1}" 2>/dev/null | sed "s/${_MAGIC}/${_SEP}/g" 2>/dev/null
return 0 return 0
} }
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# @(#) FUNCTION: data_escape_csv() # @(#) FUNCTION: data_escape_csv()
# DOES: escapes semi-colons # DOES: escapes semi-colons
@ -692,7 +691,7 @@ return ${_RC}
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# @(#) FUNCTION: data_date2epoch() # @(#) FUNCTION: data_date2epoch()
# DOES: converts a given date into UNIX epoch seconds # DOES: converts a given date into UNIX epoch seconds
# EXPECTS: date formatted as individual parameters: # EXPECTS: date formatted as individual parameters (in UTC time):
# $1 : YYYY # $1 : YYYY
# $2 : MM # $2 : MM
# $3 : DD # $3 : DD

View File

@ -141,7 +141,7 @@ do
;; ;;
esac esac
# handle result # report result
if (( _LOG_HEALTHY > 0 || _STC > 0 )) if (( _LOG_HEALTHY > 0 || _STC > 0 ))
then then
log_hc "$0" ${_STC} "${_MSG}" log_hc "$0" ${_STC} "${_MSG}"

View File

@ -132,7 +132,7 @@ then
then then
mv ${_TMP_FILE} ${_STATE_FILE} >/dev/null 2>&1 mv ${_TMP_FILE} ${_STATE_FILE} >/dev/null 2>&1
(( $? > 0 )) && { (( $? > 0 )) && {
warn "failed to move temporary state file" warn "failed to move temporary state file to permanent state file ${_STATE_FILE}"
return 1 return 1
} }
fi fi