mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-28 16:15:56 -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. |
||
---|---|---|
.. | ||
config | ||
upgrade | ||
check.rs | ||
init.rs | ||
mod.rs | ||
run.rs | ||
ts.rs |