-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DRAFT] collectd: minor dsl lua script changes #23011
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Thomas Aldrian <aldrian.thom@proton.me>
Signed-off-by: Thomas Aldrian <aldrian.thom@proton.me>
local metric = build_metric(name, direction) | ||
if information["type"] == "bool" then | ||
|
||
if name = type then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intended to be an assignment? Looks like it should be ==
to me.
Also, I'm not a fan of this special case. I don't see much benefit but unnecessary extra complexity, but that might be just me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, you're right. That's just a typo. As I said, I haven't yet tested these changes lol.
You're probably right. I mean, it doesn't really make any difference so it could also just be a waste of time to put any more thought into it. Ultimately, it ain't my call. If you want this change removed, I'll happily do so.
Signed-off-by: Thomas Aldrian <aldrian.thom@proton.me>
If you think these look good - mark this as ready |
@Weissnix4711: Have you progressed on this PR? |
Maintainer: me / @<github-user> (find it by checking history of the package Makefile)
Compile tested: (put here arch, model, OpenWrt version)
Run tested: (put here arch, model, OpenWrt version, tests done)
Description:
rx_corrected
,rx_uncorrected_protected
,crc_p
andcrcp_p
errorsIf name and type are identical (currently only relevant for snr), the name will be ignored. Ie.snr-snr_down
becomessnr-down
. I think this looks neater, but maybe that's just me.Open to criticism.
Primarily for openwrt/luci#6798