Fix printf

This commit is contained in:
Alex Malinovich 2018-04-14 18:54:38 -07:00
commit 4c97fa1d6e
No known key found for this signature in database
GPG key ID: F3327D1AA93CF5F0

View file

@ -198,7 +198,7 @@ running() {
# Get a total count of active media (MediaContainer size), then deduct one for every paused stream.
# If all streams are paused, we consider the server to not be active.
local mediacount="$(awk -F'"' '/<MediaContainer size="[0-9]+">/ {count+=$2}; /<Player[^>]* state="paused"/ {count--}; END {print count}' <<< "${DATA}")"
[ "$VERBOSE" = "yes" ] && printf 'Activity check reports a count of %b, based on return data of:\n%s\n\n' "${DATA}" >&2
[ "$VERBOSE" = "yes" ] && printf 'Activity check reports a count of %i, based on return data of:\n%s\n\n' "${mediacount}" "${DATA}" >&2
[ $mediacount -gt 0 ] && return 0
fi