Skip to content

Commit

Permalink
fix(stats): adds back calculation of aggregated storage stats (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy authored Jan 21, 2025
1 parent 7930377 commit 8c4b529
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/api/src/services/db/providerStatusService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export async function getNetworkCapacity() {
all.pendingPersistentStorage += provider.lastSuccessfulSnapshot.pendingPersistentStorage;
all.availablePersistentStorage += provider.lastSuccessfulSnapshot.availablePersistentStorage;

all.activeStorage += all.activePersistentStorage + all.activeEphemeralStorage;
all.pendingStorage += all.pendingPersistentStorage + all.pendingEphemeralStorage;
all.availableStorage += all.availablePersistentStorage + all.availableEphemeralStorage;

return all;
},
{
Expand Down

0 comments on commit 8c4b529

Please sign in to comment.