diff --git a/plexupdate-core b/plexupdate-core index f49aa26..751c196 100755 --- a/plexupdate-core +++ b/plexupdate-core @@ -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'"' '// {count+=$2}; /]* 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