]> git.scottworley.com Git - keystroke-timestamps/blobdiff - gaps.sh
Merge
[keystroke-timestamps] / gaps.sh
diff --git a/gaps.sh b/gaps.sh
index 46a05cc1f30af8d70162fce280b912e8e8e7e894..361e2a61f12c764f1d6842bb50dd98d930836b3a 100755 (executable)
--- a/gaps.sh
+++ b/gaps.sh
@@ -1,13 +1,10 @@
 #!/bin/bash
 
 threshold=${1:-3600}
-LOGFILE="$HOME/keystroke-timestamps.log"
+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)
     }