From 0b850387a4ae727dd302de8bce87adcf0c3457aa Mon Sep 17 00:00:00 2001 From: slicesequal Date: Wed, 3 Sep 2025 18:08:34 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: slicesequal --- collector/ntp.go | 2 +- collector/pcidevice_linux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/ntp.go b/collector/ntp.go index 10e639b1d9..406920e359 100644 --- a/collector/ntp.go +++ b/collector/ntp.go @@ -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()) { diff --git a/collector/pcidevice_linux.go b/collector/pcidevice_linux.go index a7e7f6d308..d5ed020a05 100644 --- a/collector/pcidevice_linux.go +++ b/collector/pcidevice_linux.go @@ -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))