luci-mod-status: improve handling of DSL metrics that are not available
authorJan Hoffmann <jan@3e8.eu>
Sat, 28 Jan 2023 18:13:30 +0000 (19:13 +0100)
committerJan Hoffmann <jan@3e8.eu>
Sat, 28 Jan 2023 18:13:30 +0000 (19:13 +0100)
commit1d43b7b725c70b62a098c04089af4c1607fe8b8e
treef25c356768d85ba14001606a67a364d992ad66a9
parent7c91e62575e31a1e39aa7a99012a76039358657c
luci-mod-status: improve handling of DSL metrics that are not available

Currently, non-existing values (null or undefined) are formatted like
zero values. Add explicit handling to allow the user to distinguish
between those and actual zero values.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/50_dsl.js