nats-io / natscli

The NATS Command Line Interface
Apache License 2.0
510 stars 99 forks source link

Improve rate calcuations for graphs #1182

Closed ploubser closed 2 weeks ago

ploubser commented 2 weeks ago

Here we check if the value from Nats the we use to in the server, stream and consumer graph actions is > 0 before using it to calculate rate. This will prevent us from storing negative rates and breaking the graphs.