Skip to content

Commit

Permalink
fix: Check NTP file
Browse files Browse the repository at this point in the history
  • Loading branch information
kerimkaan committed May 26, 2024
1 parent 4801b83 commit 374eca8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,14 @@ disk filesystem, interface name, interface hardware address, interface MTU, IPv4
panic(err)
}
fmt.Println("DNS Servers: ", resolvConf.Servers)
for _, ntp := range *ntpConfig {
fmt.Println("NTP Server: ", ntp.Server)
fmt.Println("NTP Burst Option: ", ntp.IBurst)

if *ntpConfig == nil {
fmt.Println("NTP Configuration is not available")
} else {
for _, ntp := range *ntpConfig {
fmt.Println("NTP Server: ", ntp.Server)
fmt.Println("NTP Burst Option: ", ntp.IBurst)
}
}

// Get the ntp pool time
Expand Down
4 changes: 2 additions & 2 deletions constants/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package constants

const (
// Version is the current version of the application
VERSION = "0.0.3"
VERSION = "0.0.4"
MAJOR = 0
MINOR = 0
PATCH = 3
PATCH = 4
)

0 comments on commit 374eca8

Please sign in to comment.