Fix debug output

This commit is contained in:
Alexey Palazhchenko 2015-08-28 08:54:36 +03:00
parent 1a987c2dbf
commit 38e6e6b672
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ func NewTimeCollector() (Collector, error) {
} }
func (c *timeCollector) Update(ch chan<- prometheus.Metric) (err error) { func (c *timeCollector) Update(ch chan<- prometheus.Metric) (err error) {
now := time.Now() now := float64(time.Now().Unix())
log.Debugf("Set time: %f", now.Unix()) log.Debugf("Set time: %f", now)
c.metric.Set(float64(now.Unix())) c.metric.Set(now)
c.metric.Collect(ch) c.metric.Collect(ch)
return err return err
} }