From 1d42012bf022f494cc72a570c6604de1db712854 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 1 Nov 2017 20:45:45 +0100 Subject: bin/why-dont-you: output information of duration of stay --- bin/why-dont-you | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/why-dont-you') diff --git a/bin/why-dont-you b/bin/why-dont-you index d1d528a..9656dfd 100755 --- a/bin/why-dont-you +++ b/bin/why-dont-you @@ -144,9 +144,9 @@ case "${action}" in while read -r sf; do printf '%s' "${sf}" if [ -f "${work_dir}/package-states/${sf}.testing" ]; then - printf ' (not tested yet)' + printf ' (not tested yet for %s days)' "$(( ($(date '+%s') - $(stat -c '%Y' "${work_dir}/package-states/${sf}.testing")) / 3600 / 24 ))" elif [ -f "${work_dir}/package-states/${sf}.done" ]; then - printf ' (not unstaged yet)' + printf ' (not unstaged yet for %s days)' "$(( ($(date '+%s') - $(stat -c '%Y' "${work_dir}/package-states/${sf}.done")) / 3600 / 24 ))" elif tr ' ' '.' < \ "${work_dir}/build-list" | \ grep -qxF "${sf}"; then -- cgit v1.2.3-54-g00ecf