mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Update ffprobe_info.php
This commit is contained in:
parent
da0aa4df1a
commit
f2d14a96c9
1 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ function humn_bitrate(int $bitrate, string $space = ' '): string
|
|||
$unit = 'bps';
|
||||
}
|
||||
|
||||
return commify($bitrate, 2) . $space . $unit;
|
||||
return sprintf('%d', commify($bitrate)) . $space . $unit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -137,7 +137,7 @@ function humn_bitrate(int $bitrate, string $space = ' '): string
|
|||
function humn_sample_rate(int $sample_rate, string $space = ' '): string
|
||||
{
|
||||
$unit = '';
|
||||
return commify($sample_rate, thousands_separator: '.') . $space . $unit;
|
||||
return sprintf('%.1f', commify($sample_rate)) . $space . $unit;
|
||||
}
|
||||
|
||||
$this->response['file_index'] = $file_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue