x730-script
x730-script copied to clipboard
x730-script needs fix for date
A few years ago the Unix time in seconds gained one more digit. Since then, the code
date +%s%N | cut -b1-13
must be changed to
date +%s%N | cut -b1-12
to obtain a number measuring 1/100 of a second.
To verify:
x1=`date +%s%N | cut -b1-12`; sleep 5; x2=`date +%s%N | cut -b1-12`;expr $x2 - $x1
returns a number close to 500.