File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function __construct($type = 'space')
1919
2020 public function name ()
2121 {
22- return $ this ->type === 'space ' ? 'Disk Space (GB ) ' : 'Inode Usage ' ;
22+ return $ this ->type === 'space ' ? 'Disk Space (MB ) ' : 'Inode Usage ' ;
2323 }
2424
2525 /**
@@ -31,8 +31,8 @@ public function calculate(NovaRequest $request): PartitionResult
3131 $ process = new Process ($ command , '/home ' );
3232 $ process ->run ();
3333 $ used = (int ) $ process ->getOutput ();
34- $ value = $ this ->type === 'space ' ? round ($ used / 1024 / 1024 , 2 ) : $ used ;
35- $ total = $ this ->type === 'space ' ? round ((int ) config ('app.disk_space_limit ' ) / 1024 / 1024 / 1024 , 2 ) : (int ) config ('app.disk_inode_limit ' );
34+ $ value = $ this ->type === 'space ' ? round ($ used / 1024 , 2 ) : $ used ;
35+ $ total = $ this ->type === 'space ' ? round ((int ) config ('app.disk_space_limit ' ) / 1024 / 1024 , 2 ) : (int ) config ('app.disk_inode_limit ' );
3636
3737 return $ this ->result ([
3838 'Used ' => $ value ,
You can’t perform that action at this time.
0 commit comments