mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Update
This commit is contained in:
parent
dd63d4abcd
commit
1320b5f7b4
1 changed files with 1 additions and 1 deletions
|
@ -1084,7 +1084,7 @@ function getVideosDirectoryUsageInfo() {
|
||||||
// Get disk usage information using 'du' command
|
// Get disk usage information using 'du' command
|
||||||
$command = "du -s $realPath 2>&1"; // Removed 'h' to get the usage in bytes
|
$command = "du -s $realPath 2>&1"; // Removed 'h' to get the usage in bytes
|
||||||
$usageOutput = shell_exec($command);
|
$usageOutput = shell_exec($command);
|
||||||
$usageBytes = intval(preg_split('/\s+/', $usageOutput)[0] * 1024); // Convert from KB to bytes
|
$usageBytes = intval(preg_split('/\s+/', $usageOutput)[0]) * 1024; // Convert from KB to bytes
|
||||||
|
|
||||||
// Get the total space and free space on the partition
|
// Get the total space and free space on the partition
|
||||||
$totalSpace = disk_total_space($realPath);
|
$totalSpace = disk_total_space($realPath);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue