Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit ce161cc

Browse files
authored
Update app.py
1 parent 1735a32 commit ce161cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def update_data():
145145
data['estimatedPayoutToday'] = 0.0
146146
data['spaceUsed'] = 0.0
147147
data['spaceAvailable'] = 0.0
148+
data['spaceTrash'] = 0.0
148149
data['totalNodesCount'] = len(nodes)
149150
data['nodesOnline'] = len(nodes)
150151

@@ -168,7 +169,7 @@ def update_data():
168169
"{:.2f}".format(data['estimatedPayoutTotal']/100))
169170
data['estimatedPayoutToday'] = float(
170171
"{:.2f}".format(data['estimatedPayoutToday']/100))
171-
data['spaceUsed'] = float("{:.2f}".format(data['spaceUsed']))
172+
data['spaceUsed'] = float("{:.2f}".format(data['spaceUsed']+data['spaceTrash']))
172173
data['spaceAvailable'] = float("{:.2f}".format(data['spaceAvailable']))
173174

174175
addUnits(data)

0 commit comments

Comments
 (0)