Informs the user when the deamon will restart the process
parent
0f64262a92
commit
a641b9cd96
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue