commit d8d1bb6166350dff4811a0c6e942ca9e10ad1b21
parent f5d01177941a03e44cec53242f009b9f9a218206
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Sun, 20 Sep 2026 14:22:57 -0300
main: say what TOP_N counts
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.odin b/main.odin
@@ -10,6 +10,7 @@ a live volume needs an elevated prompt.
package main
import "core:debug/trace"
+import "core:flags"
import "core:fmt"
import "core:os"
import "core:strconv"
@@ -21,6 +22,7 @@ import "ntfs"
import "scan"
import "walk"
+// Largest N files/folders to print.
TOP_N :: 20
main :: proc() {
@@ -38,7 +40,6 @@ run :: proc() -> int {
defer free_all(context.temp_allocator)
- // Assertion failures print a call chain in every build; symbols need -debug.
context.assertion_failure_proc = trace.assertion_failure_proc
target := os.user_home_dir(context.allocator) or_else "/"