Y need modify the function iin nclude/fonction.php
Code: Select all
function getDiskPercent()
{
$df = shell_exec( 'df '.ZM_DIR_EVENTS );
$space = -1;
if ( preg_match( '/\s(\d+)%/ms', $df, $matches ) )
$space = $matches[1];
return( $space );
}
sdc1 --> /usr/share/zoneminder/events/1
sdd1 --> /usr/share/zoneminder/events/2
sde1 --> /usr/share/zoneminder/events/3
sdf1 --> /usr/share/zoneminder/events/4
I want creat filter with the diskspace function but this one give me the space in /usr/share/zoneminder/events the first HD sda1
And i'm not and good dev can someone help me ?
thanks