luci-app-statistics: set logfile as first item in collectd.conf

Force logfile plugin to be evaluated first so that it gets placed
first in the collectd.conf file.

Reference to https://collectd.org/wiki/index.php/Plugin:LogFile

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit afa7a14caf)
This commit is contained in:
Hannu Nyman 2017-12-02 08:26:10 +02:00
parent a9bddc408a
commit d2dc32af31

View file

@ -467,8 +467,10 @@ preprocess = {
section("collectd")
section("logfile")
for plugin in pairs(plugins) do
if plugin ~= "collectd" then
if (plugin ~= "collectd") and (plugin ~= "logfile") then
section( plugin )
end
end