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

Commit 1905f46

Browse files
authored
Stop including artificial 0 bound when existing lowest bound is negative (#262)
1 parent e191b7c commit 1905f46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ func newTypedValue(vd *view.View, r *view.Row) *monitoringpb.TypedValue {
536536
}
537537

538538
func shouldInsertZeroBound(bounds ...float64) bool {
539-
if len(bounds) > 0 && bounds[0] != 0.0 {
539+
if len(bounds) > 0 && bounds[0] > 0.0 {
540540
return true
541541
}
542542
return false

0 commit comments

Comments
 (0)