summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-05 09:43:26 +0200
committerErich Eckner <git@eckner.net>2019-08-05 09:43:26 +0200
commit72c5bdfd6dfcb629b71e89dffa0f576270f0ad28 (patch)
tree73a8538f0f751f6fa1d7e6ee4351ec0285020c8b
parentdd2b31cbeff58a6377d31c58d165bb9d6d31d3c6 (diff)
downloadkamikaze-fsck-72c5bdfd6dfcb629b71e89dffa0f576270f0ad28.tar.xz
show elapsed seconds instead of current time
-rwxr-xr-xkamikaze-fsck4
1 files changed, 2 insertions, 2 deletions
diff --git a/kamikaze-fsck b/kamikaze-fsck
index 6ab7dd6..dd62d15 100755
--- a/kamikaze-fsck
+++ b/kamikaze-fsck
@@ -53,11 +53,11 @@ while [ -f "${tmp_dir}/faulty-inode" ]; do
printf 'clri <%s>\n' "${faulty_inode}" \
>> "${tmp_dir}/faulty-inode"
- >&2 date
+ start=$(date +%s)
pkill -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0"
while pgrep -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0"; do
sleep 1
- >&2 date
+ >&2 echo $(($(date+%s)-start))
done
break
fi