Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Use stats.UnitDimensionless rather than deprecated stats.UnitNone (#1166
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bvwells authored and rghetia committed Sep 10, 2019
1 parent 59d1ce3 commit ce85b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/quickstart/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ var (
mLatencyMs = stats.Float64("repl/latency", "The latency in milliseconds per REPL loop", stats.UnitMilliseconds)

// Counts the number of lines read in from standard input
mLinesIn = stats.Int64("repl/lines_in", "The number of lines read in", stats.UnitNone)
mLinesIn = stats.Int64("repl/lines_in", "The number of lines read in", stats.UnitDimensionless)

// Encounters the number of non EOF(end-of-file) errors.
mErrors = stats.Int64("repl/errors", "The number of errors encountered", stats.UnitNone)
mErrors = stats.Int64("repl/errors", "The number of errors encountered", stats.UnitDimensionless)

// Counts/groups the lengths of lines read in.
mLineLengths = stats.Int64("repl/line_lengths", "The distribution of line lengths", stats.UnitBytes)
Expand Down

0 comments on commit ce85b6d

Please sign in to comment.