Repository navigation
filter: space after each comma in the statistics replies - #52
Merged
Merged
Conversation
`filter stats channel|path|sender|text` and `filter count` now separate entries with ", " so they are easier to read. `filter rate` and the `filter ... list` replies keep the bare comma: the toolbox parses them back, and the spaces would cost rows or entries at the 160-byte reply limit.
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A user asked for a space after the comma in the filter statistics. Long replies such as
filter stats channelare hard to read without it.Change
filter stats channel#test (D9): 744,#ping (28): 0#test (D9): 744, #ping (28): 0filter stats pathA1B2: 412,C3: 0A1B2: 412, C3: 0filter stats sender/textBot*: 12 (pass 3),Spam: 5Bot*: 12 (pass 3), Spam: 5filter count05: 2,1005: 2, 10(header:[TYPE: HOPS, RATE])The companion filter shares the path, sender and text formatters, so its stats replies change too.
filter rateand thefilter ... listreplies are unchanged. The toolbox reads those back and matches the literalLIMIT,SECS,SOFT, and a defaultfilter ratereply is already close to the 160-byte limit.Trade-off
The reply limit stays the same, so a full list can show one entry less, and
filter countcan lose a last row once the counters get large. Both are still marked with...Compatibility
parseFilterCountin the toolbox already accepts optional whitespace around the comma, so it needs no change.Tests
test_filterstats; two new cases intest_filter_channel(stats spaced, list compact).pio test -e native: 272/272 passed.pio run -e RAK_4631_repeatersucceeded. No other board was built.Not tested on hardware or over the air.
Propagation
dmc-observer-devanddmc-dev-packetlogdo not have #50 yet, so this conflicts inFilter.cppthere unless #50 goes along or first.