summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwukong <wukong@longaeva>2025-12-05 19:29:10 -0800
committerwukong <wukong@longaeva>2025-12-05 19:29:10 -0800
commita57c9ad6feac3417bfef88395a4b1ab8c6995867 (patch)
treeadac2e3bf09136f05e8f6952bf5c145df3380074
parentdf1e57f1ac6df30174e269edbe68b5b5f7fa5c2b (diff)
clean up unused code;
-rw-r--r--ckcptime.awk3
-rw-r--r--ckt0.awk17
2 files changed, 0 insertions, 20 deletions
diff --git a/ckcptime.awk b/ckcptime.awk
index df5e188..9d8d5a7 100644
--- a/ckcptime.awk
+++ b/ckcptime.awk
@@ -150,9 +150,6 @@ BEGIN {
#print("t0_est = ", t0_est[1])
#print("t_boot_unc = ", t0_est[2])
- # wait (sleep) based on uncertainty
- # print(60.0/t0_est[2])
-
# check uptime, update estimate
#print(ck_uptime(t0_est[1], t0_est[2]))
diff --git a/ckt0.awk b/ckt0.awk
index 0c392a5..dac07ea 100644
--- a/ckt0.awk
+++ b/ckt0.awk
@@ -61,23 +61,6 @@ function ck_boottime() {
}
-# function ck_boottime() {
-# "sysctl kern.boottime" | getline t_kboot
-# close("sysctl kern.boottime")
-# sub("^.*\{", "", t_kboot)
-# sub("\}.*$", "", t_kboot)
-# split(t_kboot, t_kboot_arr, ",")
-#
-# for (i in t_kboot_arr) {
-# sub("^.*= ", "", t_kboot_arr[i])
-# }
-#
-# t_kboot = sprintf(t_kboot_arr[1] "." t_kboot_arr[2])
-# return t_kboot
-#
-# }
-
-
function ck_uptime(t0_est, t0_unc) {
t_sys_meas[1] = systime()