- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-29-2023 09:27 AM
I have a new install of Expedition and moved the /data to a bigger partition. On the dashboard page the under ML Health, the DISK usage shows to correct size. However on the chart, the disk is showing the / root directory which is on a different partition. Does anyone know where I can update the chart to use /data instead of / root directory? I included a screen shot of the Dashboard area.
09-29-2023 10:12 AM
I found the $path / to update the chart in file /var/www/html/libs/cpu_status_functions.php
try {
$path = '/data';
$diskStatus = new DiskStatus($path);
$totalSpace = $diskStatus->totalSpace();
$barWidth = ($diskStatus->usedSpace() / 100);
$out[] = [
"item" => "DISK usage",
"pct" => $barWidth,
"used" => round($diskStatus->usedSpace()/100*$totalSpace, 2). " out of ".$totalSpace ." at $path"
];
}
09-29-2023 10:12 AM
I found the $path / to update the chart in file /var/www/html/libs/cpu_status_functions.php
try {
$path = '/data';
$diskStatus = new DiskStatus($path);
$totalSpace = $diskStatus->totalSpace();
$barWidth = ($diskStatus->usedSpace() / 100);
$out[] = [
"item" => "DISK usage",
"pct" => $barWidth,
"used" => round($diskStatus->usedSpace()/100*$totalSpace, 2). " out of ".$totalSpace ." at $path"
];
}
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!