mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-06 07:42:29 -05:00
track "assumed" filesystem usage (#89)
As described in #89, we need to refactor a bit before we can get the actual filesystem block size. Assuming 4096 for now. Small steps.
This commit is contained in:
@@ -44,7 +44,7 @@ static MULTIPLIERS: [(char, u64); 4] = [
|
||||
('K', 10),
|
||||
];
|
||||
|
||||
/// Encodes a size into human-readable form.
|
||||
/// Encodes a non-negative size into human-readable form.
|
||||
pub fn encode_size(mut raw: i64) -> String {
|
||||
let mut encoded = String::new();
|
||||
for &(c, n) in &MULTIPLIERS {
|
||||
|
||||
Reference in New Issue
Block a user