Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: crowu <[email protected]>
  • Loading branch information
5antelope committed Feb 16, 2021
1 parent d1b2dc8 commit dc0d5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/vttablet/tabletserver/repltracker/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"vitess.io/vitess/go/vt/vterrors"
)

var replicationLagGauges = stats.NewGauge("replicationLagSec", "replication lag in seconds")
var replicationLagSeconds = stats.NewGauge("replicationLagSec", "replication lag in seconds")

type poller struct {
mysqld mysqlctl.MysqlDaemon
Expand Down Expand Up @@ -59,6 +59,6 @@ func (p *poller) Status() (time.Duration, error) {

p.lag = time.Duration(status.SecondsBehindMaster) * time.Second
p.timeRecorded = time.Now()
replicationLagGauges.Set(int64(p.lag.Seconds()))
replicationLagSeconds.Set(int64(p.lag.Seconds()))
return p.lag, nil
}

0 comments on commit dc0d5cf

Please sign in to comment.