File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ async def disk_usage(self, request: web.Request) -> dict:
343343
344344 disk = self .sys_hardware .disk
345345
346- total , used , _ = await self .sys_run_in_executor (
346+ total , _ , free = await self .sys_run_in_executor (
347347 disk .disk_usage , self .sys_config .path_supervisor
348348 )
349349
@@ -365,12 +365,13 @@ async def disk_usage(self, request: web.Request) -> dict:
365365 "id" : "root" ,
366366 "label" : "Root" ,
367367 "total_bytes" : total ,
368- "used_bytes" : used ,
368+ "used_bytes" : total - free ,
369369 "children" : [
370370 {
371371 "id" : "system" ,
372372 "label" : "System" ,
373- "used_bytes" : used
373+ "used_bytes" : total
374+ - free
374375 - sum (path ["used_bytes" ] for path in known_paths ),
375376 },
376377 * known_paths ,
You can’t perform that action at this time.
0 commit comments