Add missing variable declaration for luci_app_statistics plugin df 3928/head
authorTobias Waldvogel <tobias.waldvogel@gmail.com>
Sat, 18 Apr 2020 13:27:54 +0000 (15:27 +0200)
committerTobias Waldvogel <tobias.waldvogel@gmail.com>
Sat, 18 Apr 2020 13:27:54 +0000 (15:27 +0200)
Signed-off-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/df.js

index 34fbb9b5c4700e7d1e026d0c36f5262e4153a575..9790788b884753bdb3660b87143fefbaf8b66e39 100644 (file)
@@ -72,6 +72,7 @@ return baseclass.extend({
                };
 
                var types = graph.dataTypes(host, plugin, plugin_instance);
+               var p = [];
 
                for (var i = 0; i < types.length; i++)
                        if (types[i] == 'percent_bytes')