# HG changeset patch
# User Christopher Wellons <wellons@nullprogram.com>
# Date 1652825911 14400
# Tue May 17 18:18:31 2022 -0400
# Node ID 4a47258ddaee3bf92dcf5825402880bcbf6eb30a
# Parent f7d49e0c0cf9fb14e106eaccd25330eaff12e854
Don't subtract line counts from byte counts
diff --git a/main.go b/main.go
--- a/main.go
+++ b/main.go
@@ -46,7 +46,7 @@
if child.parent != nil {
if child.parent.isother {
child.parent.loc -= child.loc
- child.parent.bcount -= child.loc
+ child.parent.bcount -= child.bcount
}
for i, c := range child.parent.subdirs {
if c == child {