From 0f201cda8d5099018379b44273a695d07761052d Mon Sep 17 00:00:00 2001 From: wukong Date: Sat, 7 Feb 2026 22:26:57 -0800 Subject: 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; --- ckt0.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ckt0.sh') 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 -- cgit v1.2.3