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

Commit

Permalink
Stop including artificial 0 bound when existing lowest bound is negat…
Browse files Browse the repository at this point in the history
…ive (#262)
  • Loading branch information
x13n authored Jun 9, 2020
1 parent e191b7c commit 1905f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ func newTypedValue(vd *view.View, r *view.Row) *monitoringpb.TypedValue {
}

func shouldInsertZeroBound(bounds ...float64) bool {
if len(bounds) > 0 && bounds[0] != 0.0 {
if len(bounds) > 0 && bounds[0] > 0.0 {
return true
}
return false
Expand Down

0 comments on commit 1905f46

Please sign in to comment.