storj/web/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
..
dist storagenode,web/storagenode: use go:embed for assets 2022-03-11 16:01:28 +02:00
public storagenode,web/storagenode: use go:embed for assets 2022-03-11 16:01:28 +02:00
src {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
static web/storagenode: fix use of v-html 2021-08-24 13:02:42 +03:00
tests {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
.eslintignore web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
.eslintrc.js web/storagenode: fix linter 2022-11-04 18:32:26 +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/storagenode: fix linter 2022-11-04 18:32:26 +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/storagenode: update dependencies 2022-04-07 07:50:22 +00:00
jest.config.js web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
jest.setup.ts web/storagenode: update dependencies 2022-04-07 07:50:22 +00:00
package-lock.json web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
package.json web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
tsconfig.json web/storagenode: update dependencies 2022-04-07 07:50:22 +00:00
vue.config.js web/storagenode: fix linter 2022-11-04 18:32:26 +00:00