summaryrefslogtreecommitdiff
path: root/ckt0.awk (unfollow)
Commit message (Collapse)Author
2026-02-10added checks for zero valued uptime parameters in ck_uptime();wukong
2026-02-07fixed text substitution on ck_uptime() on Darwin to allow sec counter in firstwukong
minute after bootup; added (+ 0.0) in days, hrs, mins, sec cases to change string to float for comparison in if condition;
2026-02-05migrated to using ck_boottime() to populate initial guess of t_prev whenwukong
previous data is not available; added sub() statement to remove wall clock time from uptime command output;
2026-02-05removed commented out code;wukong
changed t_prev initial guess to use ck_boottime();
2026-02-05re-enabled seconds case in ck_uptime();wukong
2026-01-15replaced hardcoded uncertainty with call to unc_g() for the uptime valuewukong
collected from /proc/uptime;
2026-01-15adjusted unc_g() to guess an unknown uncertainty by setting it to be a powerwukong
of ten in the last digit's place;
2026-01-14added t_up measurement from /proc/uptime for linux and freebsd;wukong
added unc_g to algorithmically guess uncertainty when not available, needs further testing and tuning;
2026-01-13enabled alternate t0 based prediction of t_up;wukong
added prediction of t0 baed on new t_meas value; merge t0 prediction with updated (measured) t0 rather than t0_prev;
2026-01-12added uname case for 'Darwin';wukong
added seconds case for ck_uptime(); completed ck_time() function to allow different commands for checking time; reverted t_meas estimation to basic subtraction method; adjusted sleep timer from mod 30 to mod 60 in ckt0.sh;
2025-12-23added digits to sigfig() output;wukong
2025-12-21added commented out alternate uptime prediction;wukong
changed to merge_meas() of t_meas[] estimate when t[before] == t[after], this provides a sub-second uncertainty when used with systime() and helps derived estimates converge; set shell script to use uncertainty based sleep time in main loop;
2025-12-10started tracking t_est[] and t_up[];wukong
refactored code, moving math from ck_uptime() to BEGIN block; switched to using t_up(new) = t_up(old) + dt to predict uptime; added conditional use of "date +%s.%N" to get t as float on FreeBSD; merged some changes between ckt0.awk and ckcptime.awk;
2025-12-06merged changes from FreeBSD environment;wukong
2025-12-05clean up unused code;wukong
2025-12-05added uname check in ck_boottime(); updated variable names in merge_meas();wukong