Skip to content

Commit 467ddf9

Browse files
committed
Fix ServerResource metric to use absolute path for 'home' directory in disk usage calculation
1 parent 6990028 commit 467ddf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Nova/Metrics/ServerResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function name()
2828
public function calculate(NovaRequest $request): PartitionResult
2929
{
3030
$command = $this->type === 'space' ? ['du', '-s'] : ['du', '--inodes', '-s'];
31-
$process = new Process($command, 'home');
31+
$process = new Process($command, '/home');
3232
$process->run();
3333
$used = (int) $process->getOutput();
3434
$value = $this->type === 'space' ? round($used / 1024, 2) : $used;

0 commit comments

Comments
 (0)