storj/satellite/attribution
Cameron d4ad3a3ca6 satellite/satellitedb/attribution: update value attribution query to return byte-hours
Before, the VA query was summing the total and dividing by the number of
rows. This gives the average bytes stored per hour, but we charge for
usage with byte-hours. Why not do value attribution the same way?
To do that, we don't divide by the number of rows. We also have object
and segment fees so return segment-hours and object-hours too.

Change-Id: I1f18b7e1b2bae1d3fae1ca3b93bfc24db5b9b0e6
2022-04-08 16:22:21 -04:00
..
db_test.go satellite/satellitedb/attribution: update value attribution query to return byte-hours 2022-04-08 16:22:21 -04:00
db.go satellite/satellitedb/attribution: update value attribution query to return byte-hours 2022-04-08 16:22:21 -04:00