From d91702cb22f36226da9aa6bfbe88e86d1b6ac1f6 Mon Sep 17 00:00:00 2001 From: Martin Schitter Date: Sat, 6 Nov 2021 12:52:51 +0100 Subject: [PATCH] luci-app-statistics: protect nested formating litteral Signed-off-by: Martin Schitter --- .../resources/statistics/rrdtool/definitions/olsrd.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js index 19e217ab95..cafe2ac70e 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/olsrd.js @@ -89,7 +89,8 @@ return baseclass.extend({ opts[dsn2] = { color: "0000ff", title: "NLQ (%s)".format(host), flip: true }; g.push({ - title: "%H: Signal Quality (%s)".format(host), vlabel: "ETX", + title: "%%H: Signal Quality (%s)".format(host), + vlabel: "ETX", number_format: "%5.2lf", detail: true, data: { types: [ "signal_quality" ], -- 2.30.2