format filesize into human_readable in generate video view

add_janus_rtsp_user
Isaac Connor 2022-09-06 11:41:53 -04:00
parent e6c8081fb6
commit c4b895045b
1 changed files with 10 additions and 10 deletions

View File

@ -83,7 +83,7 @@ if ( isset($_REQUEST['downloadIndex']) ) {
// can't be output buffering, as this file might be large
ob_end_clean();
$downloadIndex = validInt($_REQUEST['downloadIndex']);
ZM\Error("Download $downloadIndex, file: " . $videoFiles[$downloadIndex]);
ZM\Debug("Download $downloadIndex, file: " . $videoFiles[$downloadIndex]);
header('Pragma: public');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
@ -195,7 +195,7 @@ if ( isset($_REQUEST['showIndex']) ) {
?>
<tr>
<td><?php echo $matches[4] ?></td>
<td><?php echo filesize($file) ?></td>
<td><?php echo human_filesize(filesize($file)) ?></td>
<td><?php echo $rateText ?></td>
<td><?php echo $scaleText ?></td>
<td>