fix: error in determining timestamp less than by weidongkl · Pull Request #979 · prometheus/client_python
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 843
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters