Merge pull request #1818 from dibdot/lxc_fix
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / conntrack.lua
index 0da546c..fbc4773 100644 (file)
@@ -1,17 +1,5 @@
---[[
-
-Luci statistics - conntrack plugin diagram definition
-(c) 2011 Jo-Philipp Wich <xm@subsignal.org>
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-$Id$
-
-]]--
+-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
+-- Licensed to the public under the Apache License 2.0.
 
 module("luci.statistics.rrdtool.definitions.conntrack",package.seeall)
 
@@ -21,6 +9,10 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
                vlabel = "Count",
                number_format = "%5.0lf",
                data = {
+                       -- collectd 5.5+: specify "" to exclude "max" instance
+                       instances = {
+                               conntrack = { "" }
+                       },
                        sources = {
                                conntrack = { "value" }
                        },