summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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