]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/util.py
Allow getting the standard deviation of the plotted values
[collecty.git] / src / collecty / util.py
index fdde1262e6f9aebdec3ca640da66f05f7979a25b..72fc0c1d78227e4c92d29137a15c041cf0953b44 100644 (file)
@@ -72,6 +72,12 @@ def get_network_interfaces():
 
                yield interface
 
+def make_interval(interval):
+       try:
+               return INTERVALS[interval]
+       except KeyError:
+               return "end-%s" % interval
+
 class ProcNetSnmpParser(object):
        """
                This class parses /proc/net/snmp{,6} and allows