From 3458f9e97761337d29b07acd5b26daac4751940e Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Fri, 28 Dec 2012 15:04:28 -0600 Subject: [PATCH] sh/stopwatch: change wording --- lib/sh/stopwatch.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/sh/stopwatch.sh b/lib/sh/stopwatch.sh index 4a45d8f..ee05e6d 100644 --- a/lib/sh/stopwatch.sh +++ b/lib/sh/stopwatch.sh @@ -108,13 +108,13 @@ EOF # Is the stopwatch running? if kvs_has_key stopwatch "${name}" then - printf "Stopwatch: %s is already running.\n" "${name}" + printf "Stopwatch: '%s' is already running.\n" "${name}" else # start the stopwatch accum="$(kvs_get stopwatch "${name}_accumulator")" kvs_set stopwatch "${name}" "${nao}" [ "${accum}" ] && restart="$(printf " at %s" "$(_stopwatch_timefmt "${accum}")")" - printf "Stopwatch: %s starts running%s.\n" "${name}" "${restart}" + printf "Stopwatch: '%s' starts%s.\n" "${name}" "${restart}" fi } @@ -131,10 +131,10 @@ EOF accum="$(kvs_get stopwatch "${name}_accumulator")" delta="$(( ${nao} - ${start} ))" [ "${accum}" ] && delta="$(( ${delta} + ${accum} ))" - printf "Stopwatch: %s is running at %s.\n" "${name}" "$(_stopwatch_timefmt "${delta}")" + printf "Stopwatch: '%s' is running: %s.\n" "${name}" "$(_stopwatch_timefmt "${delta}")" else accum="$(kvs_get stopwatch "${name}_accumulator")" - [ "${accum}" ] && printf "Stopwatch: %s is stopped at %s.\n" "${name}" "$(_stopwatch_timefmt "${accum}")" + [ "${accum}" ] && printf "Stopwatch: '%s' is stopped: %s.\n" "${name}" "$(_stopwatch_timefmt "${accum}")" fi } @@ -151,10 +151,10 @@ EOF [ "${accum}" ] && delta="$(( ${delta} + ${accum} ))" kvs_set stopwatch "${name}_accumulator" "${delta}" kvs_unset stopwatch "${name}" - printf "Stopwatch: %s stops running at %s.\n" "${name}" "$(_stopwatch_timefmt "${delta}")" + printf "Stopwatch: '%s' stops at %s.\n" "${name}" "$(_stopwatch_timefmt "${delta}")" else accum="$(kvs_get stopwatch "${name}_accumulator")" - [ "${accum}" ] && printf "Stopwatch: %s is already stopped at %s.\n" "${name}" "$(_stopwatch_timefmt "${accum}")" + [ "${accum}" ] && printf "Stopwatch: '%s' is stopped at %s.\n" "${name}" "$(_stopwatch_timefmt "${accum}")" fi } @@ -164,7 +164,7 @@ EOF [ "${nao}" ] || nao="$(date +%s)" kvs_unset stopwatch "${name}" kvs_unset stopwatch "${name}_accumulator" - printf "Stopwatch: %s is reset to 0s.\n" "${name}" + printf "Stopwatch: '%s' is reset to 0s.\n" "${name}" } stopwatch() { -- 2.42.0