storj/private
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
..
api satellite/console: integrate sessions into satellite UI 2022-06-13 08:02:02 +00:00
apigen all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
blockchain private/blockchain: address checksum hex 2022-11-08 18:19:07 +00:00
compensation multinode/console: storage usage and total storage usage 2021-06-10 16:01:41 +00:00
crashreportpb all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
cui all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
currency private/currency: add strictcsv support to microunit 2020-03-31 14:57:04 -06:00
date Fix monthly earning estimation (#4282) 2021-11-17 18:26:21 -05:00
debugging all: fix dots 2020-07-16 14:58:28 +00:00
lifecycle satellite: more detailed goroutine labels 2022-05-11 17:50:55 +00:00
migrate all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
multinodeauth {storagenode,multinode/nodes}: use multinodeauth.Secret instead of []byte for APISecret 2022-08-23 11:04:04 +00:00
multinodepb {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
nodeoperator all: fix error naming 2021-04-29 15:38:21 +03:00
post all: fix nolint directives 2022-10-11 18:31:20 +00:00
prompt private/prompt: remove dependency to go-prompt 2020-02-25 13:09:41 +02:00
revocation all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
server storage: experimental flag to turn off file sync 2022-10-06 13:10:34 +00:00
testblobs satellite/audit,storage: increase sleep delay in TestMaxVerifyCount 2021-09-10 15:30:37 +00:00
testmonkit all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
testplanet satellite/{satellitedb,audit}: add NewContainment 2022-12-07 18:03:37 +00:00
testredis all: replace deprecated ioutil 2022-10-31 15:50:41 +00:00
testrevocation pkg/,private/: merge with private package 2021-04-23 16:37:28 +03:00
teststorj all: fix dots 2020-07-16 14:58:28 +00:00
testuplink all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
version all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
web private/web,satellite/console/.../consoleapi: serve rate limiting errors as JSON 2022-11-23 17:56:07 +00:00