aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xbin/task/context1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/task/context b/bin/task/context
index 639f54a..c67b4de 100755
--- a/bin/task/context
+++ b/bin/task/context
@@ -40,6 +40,7 @@ _get_seconds() {
40 sec=$(grep -o '[0-9.]\+s' <<<"$1" | tr -d '[:alpha:]') 40 sec=$(grep -o '[0-9.]\+s' <<<"$1" | tr -d '[:alpha:]')
41 41
42 [ -z "$hour$min$sec" ] && kill -10 $PROC 42 [ -z "$hour$min$sec" ] && kill -10 $PROC
43 [[ "$time" =~ ^- ]] && echo -n -
43 echo "${hour:-0}*3600 + ${min:-0}*60 + ${sec:-0}" | bc | xargs printf '%.0f\n' 44 echo "${hour:-0}*3600 + ${min:-0}*60 + ${sec:-0}" | bc | xargs printf '%.0f\n'
44} 45}
45 46