Skip to content

Commit 35b160c

Browse files
committed
fix: Size estimation being off by 1024
Signed-off-by: Dheshan Mohandass <dmohandass@mgh.harvard.edu>
1 parent c7a4ed3 commit 35b160c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/estimate/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
6969
FROM directories d
7070
INNER JOIN directory_tree dt ON d.parent_id = dt.directory_id
7171
)
72-
SELECT COALESCE(SUM(f.size), 0) / 1024 AS total_size
72+
SELECT COALESCE(SUM(f.size), 0) AS total_size
7373
FROM files f
7474
WHERE f.directory_id IN (SELECT directory_id FROM directory_tree)
7575
"#

0 commit comments

Comments
 (0)