storj/storagenode
Clement Sam 3d3f9d133a storagenode: fix B*h to bytes disk usage conversion
The used space graph values are correct when a single satellite is
selected but wrong for 'All satellites'. This is related to the
queries for getting the individual disk usages for all satellites
per day and the summary and average for all satellites per day:

1. dividing the sum of at_rest_total by the total_hours is wrong.
Simply put, we were assuming that, for example (4/2)+(6/3) equals
to (4+6)/(2+3), assuming we had 4 and 6 at_rest_total values with
2 and 3 respective hours.

2. To get the average, we need to first find the sum of the
at_rest_total_bytes for each timestamp across all satellites
before taking the average of the sums instead of just taking the
average from the individual satellite values.

Closes https://github.com/storj/storj/issues/5519

Change-Id: Ib1314e238b695a6c1ecd9f9171ee86dd56bb3b24
2023-02-06 18:50:31 +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: fix B*h to bytes disk usage conversion 2023-02-06 18:50:31 +00:00
contact storagenode/contact: send noise key and settings as contact info 2023-01-31 21:49:20 +00:00
gracefulexit storage/filestore: avoid stat() during walkNamespaceInPath 2023-01-30 13:47:03 +00: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 storage/filestore: avoid stat() during walkNamespaceInPath 2023-01-30 13:47:03 +00:00
piecestore storagenode/piecestore: return node certificate chain at upload conclusion 2023-02-01 01:49:50 +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 storage/filestore: better error message on data corruption 2023-01-30 08:54:06 -06:00
satellites Revert "storagenode/payouts: historical payouts use satellitesDB instead of trustPool" 2021-08-02 13:55:21 +03:00
storagenodedb storagenode: fix B*h to bytes disk usage conversion 2023-02-06 18:50:31 +00:00
storageusage storagenode: fix B*h to bytes disk usage conversion 2023-02-06 18:50:31 +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/piecestore: return node certificate chain at upload conclusion 2023-02-01 01:49:50 +00:00