]> git.scottworley.com Git - keystroke-timestamps/blobdiff - gaps.sh
Merge
[keystroke-timestamps] / gaps.sh
diff --git a/gaps.sh b/gaps.sh
index cf951049217ebf8e1e13fda0fb643612f728bc94..361e2a61f12c764f1d6842bb50dd98d930836b3a 100755 (executable)
--- 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)
     }