Skip to content

Commit 34467b1

Browse files
authored
chore:remove constant from function (#2884)
Signed-off-by: tyltr <[email protected]>
1 parent 94ddad4 commit 34467b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

collector/timex.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const (
3838
// 1 second in
3939
nanoSeconds = 1000000000
4040
microSeconds = 1000000
41+
42+
// See NOTES in adjtimex(2).
43+
ppm16frac = 1000000.0 * 65536.0
4144
)
4245

4346
type timexCollector struct {
@@ -183,8 +186,6 @@ func (c *timexCollector) Update(ch chan<- prometheus.Metric) error {
183186
} else {
184187
divisor = microSeconds
185188
}
186-
// See NOTES in adjtimex(2).
187-
const ppm16frac = 1000000.0 * 65536.0
188189

189190
ch <- c.syncStatus.mustNewConstMetric(syncStatus)
190191
ch <- c.offset.mustNewConstMetric(float64(timex.Offset) / divisor)

0 commit comments

Comments
 (0)