]> git.ipfire.org Git - oddments/collecty.git/blame - src/collecty/constants.py
psi: Add graph template
[oddments/collecty.git] / src / collecty / constants.py
CommitLineData
f37913e8 1#!/usr/bin/python3
bf012438
MT
2###############################################################################
3# #
4# collecty - A system statistics collection daemon for IPFire #
5# Copyright (C) 2012 IPFire development team #
6# #
7# This program is free software: you can redistribute it and/or modify #
8# it under the terms of the GNU General Public License as published by #
9# the Free Software Foundation, either version 3 of the License, or #
10# (at your option) any later version. #
11# #
12# This program is distributed in the hope that it will be useful, #
13# but WITHOUT ANY WARRANTY; without even the implied warranty of #
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15# GNU General Public License for more details. #
16# #
17# You should have received a copy of the GNU General Public License #
18# along with this program. If not, see <http://www.gnu.org/licenses/>. #
19# #
20###############################################################################
21
73241420
MT
22from .__version__ import *
23
bf012438 24DATABASE_DIR = "/var/lib/collecty"
73db5226 25
5913a52c 26DEFAULT_IMAGE_FORMAT = "SVG"
34318d08
MT
27SUPPORTED_IMAGE_FORMATS = ("SVG", "PNG", "PDF")
28
89c9cbc1 29# Default column widths
03619914
MT
30LABEL = "%-30s"
31EMPTY_LABEL = "%32s" % ""
97cb4bea
MT
32
33COLUMN = "%16s"
34PERCENTAGE = "%13.2lf%%"
35INTEGER = "%16.0lf"
36LARGE_INTEGER = "%14.0lf %s"
37FLOAT = "%14.2lf"
38LARGE_FLOAT = "%12.2lf %s"
8988e876
MT
39BPS = "%9.2lf %sbps"
40PPS = "%9.2lf %spps"
eb06d20a 41MS = "%11.2lf ms"
89c9cbc1 42
8988e876
MT
43EMPTY_LINE = "COMMENT: \\n"
44HEADLINE = "COMMENT:---- %s ----\\c"
89c9cbc1 45