mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit f375766166d8fd3b348c252e0c1a31f31c512ea1
parent 48f86819ab9c919b4084ee4008355d2c0a402b9c
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 25 Jan 2018 18:53:22 +0100

save history of application use

Diffstat:
throttle | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/throttle b/throttle @@ -16,7 +16,7 @@ if [ ! -f "$FILE" ] then echo 0 > $FILE fi -LAST=$(cat $FILE) +LAST=$(tail -1 $FILE) PRESENT=$(date "+%s") DIFF=$(($PRESENT - $LAST)) @@ -40,6 +40,6 @@ then fi # run command -date "+%s" > $FILE +date "+%s" >> $FILE exec "$@"