From a641b9cd96f387fb01571aebb01c0b42e04b840a Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Sun, 12 Jun 2022 23:04:53 -0500 Subject: [PATCH] Informs the user when the deamon will restart the process --- src/rhosts.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rhosts.go b/src/rhosts.go index af947e1..12bea9f 100644 --- a/src/rhosts.go +++ b/src/rhosts.go @@ -151,6 +151,9 @@ func main() { log.Print("Finished updating host") if (daemon == true){ + i := time.Now().Add(time.Duration(interval) * time.Minute).Format(time.Layout) + log.Printf("Sleeping for %d minutes", interval) + log.Print("Should restart at: " + i) time.Sleep(time.Duration(interval) * time.Minute) }else{ break