storj/web/multinode
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
..
dist multinode,web/multinode: use go:embed for assets 2022-03-11 11:10:37 +02:00
public multinode,web/multinode: use go:embed for assets 2022-03-11 11:10:37 +02:00
src {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
static web/multinode: wallets page markup 2021-06-08 18:47:43 +03:00
tests/unit {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
.eslintignore web/multinode: fixed linter 2022-11-04 19:06:21 +00:00
.eslintrc.js web/multinode: fixed linter 2022-11-04 19:06:21 +00:00
.gitignore web/{multinode,satellite,storagenode}: revert go.mod 2022-07-08 19:51:51 +03:00
.stylelintignore web/: add custom linter for requiring @vue/component 2021-09-01 13:56:37 +00:00
.stylelintrc.js web/multinode: fixed linter 2022-11-04 19:06:21 +00:00
assets_noembed.go satellite/admin/ui,web/{multinode,storagenode}: build without embedding 2022-03-29 13:18:04 +03:00
assets.go satellite/admin/ui,web/{multinode,storagenode}: build without embedding 2022-03-29 13:18:04 +03:00
build-if-changed.sh build: fix conditional run of web builds 2022-08-11 14:34:44 +00:00
build.sh web: create valid go.mod stubs 2022-09-26 17:11:10 +03:00
index.html web/multinode: favicon added 2021-03-22 12:50:53 +00:00
jest.config.js web/multinode: fixed linter 2022-11-04 19:06:21 +00:00
jest.setup.ts web/multinode: update dependencies 2022-04-06 14:48:21 +00:00
package-lock.json web/multinode: fixed linter 2022-11-04 19:06:21 +00:00
package.json web/multinode: fixed linter 2022-11-04 19:06:21 +00:00
tsconfig.json web/multinode: update dependencies 2022-04-06 14:48:21 +00:00
vue.config.js web/multinode: fixed linter 2022-11-04 19:06:21 +00:00