storj/storagenode/nodestats
Jeff Wendling 14e36e4d60
storagenode/nodestats: fix issue on 32 bit platforms (#2841)
* storagenode/nodestats: fix issue on 32 bit platforms

time.Duration is an int64, so casting it down to an int
can cause it to become negative, causing a panic.

Change-Id: I33da7c29ddd59be60d8deec944a25f4a025902c7

* storagenode/nodestats: fix lint issue in test

Change-Id: Ie68598d724d2cae0dc959d4877098a08f4eb9af7
2019-08-21 18:57:44 -06:00
..
cache_test.go storagenode/nodestats: fix issue on 32 bit platforms (#2841) 2019-08-21 18:57:44 -06:00
cache.go storagenode/nodestats: fix issue on 32 bit platforms (#2841) 2019-08-21 18:57:44 -06:00
service.go storagenode/nodestats: cache node stats (#2543) 2019-08-08 16:47:04 +03:00