mirror of
https://github.com/prometheus/node_exporter.git
synced 2026-02-05 15:45:10 +01:00
chore: fix some typos in comment (#3399)
Signed-off-by: slicesequal <slicesequal@outlook.com>
This commit is contained in:
@@ -60,7 +60,7 @@ func init() {
|
||||
// NewNtpCollector returns a new Collector exposing sanity of local NTP server.
|
||||
// Default definition of "local" is:
|
||||
// - collector.ntp.server address is a loopback address (or collector.ntp.server-is-mine flag is turned on)
|
||||
// - the server is reachable with outgoin IP_TTL = 1
|
||||
// - the server is reachable with outgoing IP_TTL = 1
|
||||
func NewNtpCollector(logger *slog.Logger) (Collector, error) {
|
||||
ipaddr := net.ParseIP(*ntpServer)
|
||||
if !*ntpServerIsLocal && (ipaddr == nil || !ipaddr.IsLoopback()) {
|
||||
|
||||
@@ -125,7 +125,7 @@ func (c *pcideviceCollector) Update(ch chan<- prometheus.Metric) error {
|
||||
|
||||
ch <- c.infoDesc.mustNewConstMetric(1.0, values...)
|
||||
|
||||
// MaxLinkSpeed and CurrentLinkSpeed are represnted in GT/s
|
||||
// MaxLinkSpeed and CurrentLinkSpeed are represented in GT/s
|
||||
maxLinkSpeedTS := float64(int64(*device.MaxLinkSpeed * 1e9))
|
||||
currentLinkSpeedTS := float64(int64(*device.CurrentLinkSpeed * 1e9))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user