summaryrefslogtreecommitdiff
path: root/ckt0.sh
diff options
context:
space:
mode:
authorwukong <wukong@longaeva>2026-02-07 22:26:57 -0800
committerwukong <wukong@longaeva>2026-02-07 22:26:57 -0800
commit0f201cda8d5099018379b44273a695d07761052d (patch)
tree5e0252cacc195d491b115a20c603bcbf50dae69d /ckt0.sh
parenta808892b87853d0cedae554b7cf1c20d5c813cff (diff)
fixed text substitution on ck_uptime() on Darwin to allow sec counter in first
minute after bootup; added (+ 0.0) in days, hrs, mins, sec cases to change string to float for comparison in if condition;
Diffstat (limited to 'ckt0.sh')
-rw-r--r--ckt0.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ckt0.sh b/ckt0.sh
index ecb46ae..7d58bd6 100644
--- a/ckt0.sh
+++ b/ckt0.sh
@@ -27,7 +27,7 @@ for N in $(seq 0 10080) ; do
#awk -f ckt0.awk
#sleep $( awk 'BEGIN {print(sqrt( rand()^2.0 + 1.0 ))}' )
#sleep $( echo $t0_est | awk '{print(sqrt( ((60.0*$4)/(60.0 + $4))^2.0 + rand()^2.0 ))}' )
- sleep $( echo $t0_est | awk '{print( sqrt($2^2.0 + $4^2.0 + $6^2.0 + rand()^2.0)%60.0 )}' )
+ sleep $( echo $t0_est | awk '{print( sqrt($2^2.0 + $4^2.0 + $6^2.0 + rand()^2.0)%30.0 )}' )
done