purgewhenfull not working with DiskPercent

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
davic
Posts: 17
Joined: Thu May 20, 2010 9:41 am

purgewhenfull not working with DiskPercent

Post by davic »

HI,
with the debug of PurgeWhenFull I obtain :
"SQL SELECT E.*,M.Name AS MonitorName,M.DefaultScale
FROM Monitors AS M INNER JOIN Events AS E ON (M.Id = E.MonitorId)
WHERE TRUE /*DiskPercent*/ and E.Archived = '0' and E.StorageId = '1' ORDER BY StartDateTime ASC LIMIT 10"

In the diskpercent miss the parameter ">90%". Tried many conditions but noghing.
thanks
User avatar
Andyrh
Posts: 243
Joined: Sat Oct 28, 2017 3:55 am

Re: purgewhenfull not working with DiskPercent

Post by Andyrh »

Can you post a picture of the PurgeWhenFull filter?
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
davic
Posts: 17
Joined: Thu May 20, 2010 9:41 am

Re: purgewhenfull not working with DiskPercent

Post by davic »

HI, in the debug image you can see there's not the parameter "90%"
Attachments
filter debug.jpg
filter debug.jpg (47.99 KiB) Viewed 349 times
filter.jpg
filter.jpg (227.33 KiB) Viewed 349 times
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: purgewhenfull not working with DiskPercent

Post by Magic919 »

It clearly shows DiskPercent.
-
davic
Posts: 17
Joined: Thu May 20, 2010 9:41 am

Re: purgewhenfull not working with DiskPercent

Post by davic »

Yes, in the SQL shows "DiskPercent" but not "90" and that's why it doesn't work.
Still writing "90%" not works.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: purgewhenfull not working with DiskPercent

Post by Magic919 »

I don't think so.
-
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: purgewhenfull not working with DiskPercent

Post by dougmccrary »

I’m not sure trying to update diskspace in the purge is a good idea. It’s a separate filter.
Post Reply