fix: error in determining timestamp less than by weidongkl · Pull Request #979 · prometheus/client_python

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

```
__lt__ is the negation of __gt__ by default.
so samples.Timestamp(1, 1) > samples.Timestamp(1, 1) is false
and samples.Timestamp(1, 1) < samples.Timestamp(1, 1) is true.
but  samples.Timestamp(1, 1) < samples.Timestamp(1, 1) should be false too.
add __lt__ func to fix the bug
```

Signed-off-by: weidongkl <weidongkl@sina.com>

csmarchbanks