chore: fix some typos in comment (#3399)

Signed-off-by: slicesequal <slicesequal@outlook.com>
pull/3443/head
slicesequal 2 months ago committed by GitHub
parent be0dcd85e2
commit f3b02df012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      collector/ntp.go
  2. 2
      collector/pcidevice_linux.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()) {

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

Loading…
Cancel
Save