Informs the user when the deamon will restart the process

stable
Justin Reichardt 2022-06-12 23:04:53 -05:00
parent 0f64262a92
commit a641b9cd96
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ func main() {
log.Print("Finished updating host") log.Print("Finished updating host")
if (daemon == true){ 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) time.Sleep(time.Duration(interval) * time.Minute)
}else{ }else{
break break