storj/storagenode
Clement Sam 7461ffe148 {storagenode,web/multinode}: fix storage usage db/cache retrieval queries
The query changes we did while fixing the usage graph led to wrong
payout calculations directly linked to disk space.

This change:

- avoids converting from Bh to B directly in the query
- returns the at_rest_total in the original bytes*hour value
- returns at_rest_total_bytes as the calculated disk spaced used in bytes
- uses the at_rest_total_bytes only for the disk space graph
- return summary_bytes as the average disk space used within the specified date
- updates the disk space graph header to "average disk space used this month"

The total disk used in the month is also displayed in B not B*day

Resolves https://github.com/storj/storj/issues/5355

Change-Id: I2cfefb0fe711f9c59de2adb547c4ab50b05c7cbb
2022-12-09 11:07:33 +00:00
..
apikeys multinode/payouts: estimated payouts added 2021-05-11 11:33:32 +00:00
bandwidth storagenode: add doc.go files for sno packages 2021-09-29 08:24:56 +00:00
collector storagenode/collector: delete expired piece info if file does not exist 2022-09-15 12:29:29 +00:00
console {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
contact storagenode: overhaul QUIC check implementation 2022-11-09 03:15:57 +00:00
gracefulexit storagenode/gracefulexit: remove unused interface 2022-08-04 11:26:14 +03:00
healthcheck storagenode: accept HTTP calls on public port, listening for monitoring requests 2022-08-26 09:38:09 +00:00
inspector storagenode: add doc.go files for sno packages 2021-09-29 08:24:56 +00:00
internalpb all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
monitor storagenode: add doc.go files for sno packages 2021-09-29 08:24:56 +00:00
multinode {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
nodestats storagenode/nodestats: add monkit metrics for reputation scores 2022-09-15 08:43:48 +00:00
notifications storagenode/console/consoleapi: use fixed time.Now() 2022-07-01 12:36:01 +03:00
operator storagenode: wallet features 2021-03-24 09:08:36 +00:00
orders storagenode: add doc.go files for sno packages 2021-09-29 08:24:56 +00:00
payouts {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
pieces storagenode/pieces: warn and trash v0 pieces when not found in v0pieceInfoDB 2022-11-14 14:54:16 +00:00
piecestore all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
piecetransfer mod: bump uplink 2021-05-06 14:48:36 +00:00
preflight storagenode/satellites: address added, caching satellite's addresses from trust 2021-07-08 15:38:23 +00:00
pricing all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
reputation storagenode/reputation: clarify wording on suspension notification (#4921) 2022-06-20 22:07:12 +02:00
retain satellite/gc/sender: new service to send retain filters 2022-09-20 11:49:40 +00:00
satellites Revert "storagenode/payouts: historical payouts use satellitesDB instead of trustPool" 2021-08-02 13:55:21 +03:00
storagenodedb {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
storageusage {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
trust mod: bump dependencies 2022-10-19 17:01:53 +00:00
version storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
peer.go storagenode/storagenodedb: faster test db init 2022-12-01 20:45:36 +00:00