moonfire-nvr/src/cmds
Scott Lamb b7957edb5a fix "Edit retention" fs capacity calculation
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.
2017-02-12 20:45:46 -08:00
..
config fix "Edit retention" fs capacity calculation 2017-02-12 20:45:46 -08:00
upgrade benchmark camera page, fix broken schema 2017-02-12 20:37:03 -08:00
check.rs new command to initialize a database 2017-01-17 14:21:13 -08:00
init.rs new command to initialize a database 2017-01-17 14:21:13 -08:00
mod.rs new "moonfire-nvr config" subcommand 2017-02-05 19:58:41 -08:00
run.rs new command to initialize a database 2017-01-17 14:21:13 -08:00
ts.rs use xsv-style subcommands like "moonfire-nvr run" 2017-01-17 12:51:56 -08:00