From f3c98c168e0c1b062f78080b71f94116fd29ab8b Mon Sep 17 00:00:00 2001 From: dineshtessell <118711715+dineshtessell@users.noreply.github.com> Date: Sat, 11 Mar 2023 17:07:24 +0530 Subject: [PATCH] fixing typo and change the "DNS Available" to "Service Available" --- calc/calc.go | 1 - task/task.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/calc/calc.go b/calc/calc.go index 2f8eede..4d6e420 100644 --- a/calc/calc.go +++ b/calc/calc.go @@ -21,7 +21,6 @@ func ServiceAvailable(lost_err_time time.Time) time.Duration { } } - // Calculate RTO return service_conn_time.Sub(lost_err_time) } diff --git a/task/task.go b/task/task.go index a4ee1cc..340307f 100644 --- a/task/task.go +++ b/task/task.go @@ -151,7 +151,7 @@ func Run() { w := tabwriter.NewWriter(buf, 0, 0, 1, ' ', 0) fmt.Fprintln(w, "\t", "") fmt.Fprintln(w, "SLA\t", fmt.Sprintf("%.5f", percent.PercentOf(86400*1000-int(rto.Milliseconds()), 86400*1000))) - fmt.Fprintln(w, "DNS Available\t", serviceAvailable) + fmt.Fprintln(w, "Service Available\t", serviceAvailable) fmt.Fprintln(w, "RTO\t", rto) fmt.Fprintln(w, "RPO\t", rpo) fmt.Fprintln(w, "Quick Data Loss Check (bytes)\t", data_los_bytes)