microsoft / garnet

Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
https://microsoft.github.io/garnet/
MIT License
9.71k stars 459 forks source link

Fix some TimeSpan duration code #439

Closed kevin-montrose closed 3 weeks ago

kevin-montrose commented 3 weeks ago

Noticed while working on ACLs, these uses of TimeSpan.Seconds and TimeSpan.Days appear incorrect.

Switched to using the TimeSpan.TotalXXX equivalents which return total duration in whatever unit, not just the "component" bit of the TimeSpan.