Skip to content

Commit

Permalink
修复单位转换
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored Nov 4, 2024
1 parent e13dcee commit 1f82d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/cdn_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (e *cdnExporter) Collect(ch chan<- prometheus.Metric) {
ch <- prometheus.MustNewConstMetric(
e.cdnBandWidth,
prometheus.GaugeValue,
bandWidth / 1024 / 1024,
bandWidth / 1000 / 1000,
domain,
)
ch <- prometheus.MustNewConstMetric(
Expand All @@ -109,4 +109,4 @@ func (e *cdnExporter) Collect(ch chan<- prometheus.Metric) {
)
}
}
}
}

0 comments on commit 1f82d26

Please sign in to comment.