1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
This commit is contained in:
Daniel Neto 2024-12-12 16:11:08 -03:00
parent dd63d4abcd
commit 1320b5f7b4

View file

@ -1084,7 +1084,7 @@ function getVideosDirectoryUsageInfo() {
// Get disk usage information using 'du' command
$command = "du -s $realPath 2>&1"; // Removed 'h' to get the usage in bytes
$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
$totalSpace = disk_total_space($realPath);