diff options
author | Joe <rbo@gmx.us> | 2024-01-11 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-11 20:20:20 +0100 |
commit | f879648e5017fa9b0fde5016de46dc8be3df911d (patch) | |
tree | 2587a851104cc7e501e8a0f6a398866dccaa1c90 /c_ldirs.go | |
parent | folded was useless indeed (diff) | |
download | hardflip-f879648e5017fa9b0fde5016de46dc8be3df911d.tar.gz hardflip-f879648e5017fa9b0fde5016de46dc8be3df911d.tar.bz2 hardflip-f879648e5017fa9b0fde5016de46dc8be3df911d.tar.xz hardflip-f879648e5017fa9b0fde5016de46dc8be3df911d.tar.zst hardflip-f879648e5017fa9b0fde5016de46dc8be3df911d.zip |
fix that now
Diffstat (limited to '')
-rw-r--r-- | c_ldirs.go | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -161,10 +161,12 @@ func (dir *DirsNode) count_elements(skip_folds bool, items += dir.count_hosts() for ptr := dir.next; ptr != nil && ptr.Depth > dir.Depth; ptr = ptr.next { - if skip_folds == true && folds[dir] != nil { - items += 1 - // HACK: key to the map is the key - // TODO: fix you shit + if skip_folds == true && lfold := folds[ptr] != nil { + lfold.head + for i := 1; i < count; i++ { + ptr = ptr.next + } + // FIX: fix you shit } else { items += ptr.count_hosts() + 1 } |