X-Git-Url: http://git.scottworley.com/keystroke-timestamps/blobdiff_plain/00f4619f0cf7df1a5ea4ff3d1ca0cd21c2aa171a..HEAD:/gaps.sh?ds=inline diff --git a/gaps.sh b/gaps.sh index cf95104..361e2a6 100755 --- a/gaps.sh +++ b/gaps.sh @@ -3,11 +3,8 @@ threshold=${1:-3600} LOGFILE="${2:-$HOME/keystroke-timestamps.log}" -awk -vthreshold="$threshold" ' - BEGIN { - time_fmt = "%F %T" - } - { +awk -vthreshold="$threshold" -vtime_fmt="%F %T" ' + $1 <= 67767976233561595 { if (prev && $1 - prev > threshold) { print(strftime(time_fmt, prev), "to", strftime(time_fmt, $1), "was", $1 - prev) }