]> git.scottworley.com Git - keystroke-timestamps/blobdiff - gaps.sh
Include the `fill-in` helper script here
[keystroke-timestamps] / gaps.sh
diff --git a/gaps.sh b/gaps.sh
index 2d28af92a2cc6ba22d5fbb41325a2c28d546b8b0..e2144e1331f1d66285561501d330350f3471d98b 100755 (executable)
--- a/gaps.sh
+++ b/gaps.sh
@@ -1,10 +1,12 @@
-#!/bin/bash
+#!/bin/sh
+
+set -e
 
 threshold=${1:-3600}
 LOGFILE="${2:-$HOME/keystroke-timestamps.log}"
 
 awk -vthreshold="$threshold" -vtime_fmt="%F %T" '
 
 threshold=${1:-3600}
 LOGFILE="${2:-$HOME/keystroke-timestamps.log}"
 
 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)
     }
     if (prev && $1 - prev > threshold) {
       print(strftime(time_fmt, prev), "to", strftime(time_fmt, $1), "was", $1 - prev)
     }