mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-30 09:03:22 -05:00
b7957edb5a
This was completely wrong: it overflowed on large filesystems and double-counted the used bytes. The new logic is still imperfect in that if there are a bunch of files in the process of being deleted (moved from recording to reserved_sample_files but not yet unlinked), they'll be taken out of the total capacity. Maybe it should stat everything in the sample file directory instead of relying on the recording table. It's definitely an improvement, though. |
||
---|---|---|
.. | ||
cameras.rs | ||
mod.rs | ||
retention.rs |