1
0
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:
slicesequal
2025-10-22 20:44:40 +08:00
committed by GitHub
parent be0dcd85e2
commit f3b02df012
2 changed files with 2 additions and 2 deletions

View File

@@ -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()) {

View File

@@ -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))