From 4c97fa1d6e1831967f2997e796aae78ce05f4804 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Sat, 14 Apr 2018 18:54:38 -0700 Subject: [PATCH] Fix printf --- plexupdate-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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