diff options
2 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js index fafe4afe16..2d317d38fb 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/df.js @@ -95,7 +95,7 @@ return L.Class.extend({ var devs = L.toArray(section.Devices), mounts = L.toArray(section.MountPoints), fstypes = L.toArray(section.FSTypes), - count = devs.length + mounts.length + count.length, + count = devs.length + mounts.length + fstypes.length, invert = section.IgnoreSelected == '1'; if (count == 0) diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js index a1b67c1b17..00d0ec88ff 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/iptables.js @@ -33,7 +33,7 @@ return L.Class.extend({ table = m[1]; count = {}; } - else if ((m = lines[i].match(/^-A (.+?) (-.+)$/)) != null) { + else if ((m = lines[i].match(/^-A (.+?) ([!-].+)$/)) != null) { count[m[1]] = (count[m[1]] || 0) + 1; iptables[table] = iptables[table] || {}; |