PurgeWhenFull doesn't work
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 17
- Joined: Mon Jun 25, 2007 6:29 pm
Not quite.zoneminder wrote:Thanks. Changed for 1.23.2.
unserialize returns an error (Perhaps worth printing an error message in zm_html_view_filter.php). Could you please check the string. I think it should be:
Code: Select all
a:4:{s:5:"terms";a:2:{i:0;a:3:{s:4:"attr";s:8:"Archived";s:2:"op";s:1:"=";s:3:"val";s:1:"0";}i:1;a:4:{s:3:"cnj";s:3:"and";s:4:"attr";s:11:"DiskPercent";s:2:"op";s:2:">=";s:3:"val";s:2:"95";}}s:10:"sort_field";s:8:"DateTime";s:8:"sort_asc";s:1:"1";s:5:"limit";s:1:"5";}
Code: Select all
array(11) {
["Name"]=>
string(13) "PurgeWhenFull"
["Query"]=>
string(268) "a:4:{s:5:"terms";a:2:{i:0;a:3:{s:4:"attr";s:8:"Archived";s:2:"op";s:1:"=";s:3:"val";s:1:"0";}i:1;a:4:{s:3:"cnj";s:3:"and";s:4:"attr";s:11:"DiskPercent";s:2:"op";s:2:">=";s:3:"val";s:2:"95";}}s:10:"sort_field";s:8:"DateTime";s:8:"sort_asc";s:1:"1";s:5:"limit";s:1:"5";}"
["AutoArchive"]=>
string(1) "0"
["AutoVideo"]=>
string(1) "0"
["AutoUpload"]=>
string(1) "0"
["AutoEmail"]=>
string(1) "0"
["AutoMessage"]=>
string(1) "0"
["AutoExecute"]=>
string(1) "0"
["AutoExecuteCmd"]=>
string(0) ""
["AutoDelete"]=>
string(1) "1"
["Background"]=>
string(1) "0"
}
array(4) {
["terms"]=>
array(2) {
[0]=>
array(3) {
["attr"]=>
string(8) "Archived"
["op"]=>
string(1) "="
["val"]=>
string(1) "0"
}
[1]=>
array(4) {
["cnj"]=>
string(3) "and"
["attr"]=>
string(11) "DiskPercent"
["op"]=>
string(2) ">="
["val"]=>
string(2) "95"
}
}
["sort_field"]=>
string(8) "DateTime"
["sort_asc"]=>
string(1) "1"
["limit"]=>
string(1) "5"
}
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: