This commit is contained in:
2
main.go
2
main.go
@@ -197,7 +197,7 @@ func main() {
|
|||||||
maxDiff := time.Duration(*vAllowedDiff) * time.Second
|
maxDiff := time.Duration(*vAllowedDiff) * time.Second
|
||||||
|
|
||||||
if diff > maxDiff || diff < -maxDiff {
|
if diff > maxDiff || diff < -maxDiff {
|
||||||
fmt.Printf("ESXi %s time differs from local time by more than %d seconds (ESXi: %v, Local: %v)", hs.Name, *vAllowedDiff, esxiTimeLocal, localTime)
|
log.Printf("ESXi %s time differs from local time by more than %d seconds (ESXi: %v, Local: %v)", hs.Name, *vAllowedDiff, esxiTimeLocal, localTime)
|
||||||
|
|
||||||
// Get the cluster name
|
// Get the cluster name
|
||||||
if hs.Parent.Type == "ClusterComputeResource" {
|
if hs.Parent.Type == "ClusterComputeResource" {
|
||||||
|
Reference in New Issue
Block a user