summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()