mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-20 05:34:12 -04:00
Show total size for non-montage review downloads as well
This commit is contained in:
1 parent
cfbbc238c9
commit
d8a62e0ede
1 file changed
+4
-1
@@ -66,7 +66,10 @@ if ( !empty($_REQUEST['eid']) ) {
|
||||
$Event = new Event( $_REQUEST['eid'] );
|
||||
echo 'Downloading event ' . $_REQUEST['eid'] . ' Resulting file should be approximately ' . human_filesize( $Event->DiskSpace() );
|
||||
} else if ( !empty($_REQUEST['eids']) ) {
|
||||
$total_size = 0;
|
||||
foreach ( $_REQUEST['eids'] as $eid ) {
|
||||
$Event = new Event($eid);
|
||||
$total_size += $Event->DiskSpace();
|
||||
?>
|
||||
<input type="hidden" name="eids[]" value="<?php echo validInt($eid) ?>"/>
|
||||
<?php
|
||||
@@ -74,7 +77,7 @@ if ( !empty($_REQUEST['eid']) ) {
|
||||
unset( $eid );
|
||||
echo "Downloading " . count($_REQUEST['eids']) . ' events. Resulting file should be approximately ' . human_filesize($total_size);
|
||||
} else {
|
||||
echo '<div class="warning">There are no events found. Resulting download will be empty.</div>';
|
||||
echo '<div class="warning">There are no events found. Resulting download will be empty.</div>';
|
||||
}
|
||||
?>
|
||||
<table id="contentTable" class="minor" cellspacing="0">
|
||||
|
||||
Reference in new issue
Block a user