]>
Commit | Line | Data |
---|---|---|
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 |
22 | from .__version__ import * |
23 | ||
bf012438 | 24 | DATABASE_DIR = "/var/lib/collecty" |
73db5226 | 25 | |
5913a52c | 26 | DEFAULT_IMAGE_FORMAT = "SVG" |
34318d08 MT |
27 | SUPPORTED_IMAGE_FORMATS = ("SVG", "PNG", "PDF") |
28 | ||
89c9cbc1 | 29 | # Default column widths |
03619914 MT |
30 | LABEL = "%-30s" |
31 | EMPTY_LABEL = "%32s" % "" | |
97cb4bea MT |
32 | |
33 | COLUMN = "%16s" | |
34 | PERCENTAGE = "%13.2lf%%" | |
35 | INTEGER = "%16.0lf" | |
36 | LARGE_INTEGER = "%14.0lf %s" | |
37 | FLOAT = "%14.2lf" | |
38 | LARGE_FLOAT = "%12.2lf %s" | |
8988e876 MT |
39 | BPS = "%9.2lf %sbps" |
40 | PPS = "%9.2lf %spps" | |
eb06d20a | 41 | MS = "%11.2lf ms" |
89c9cbc1 | 42 | |
8988e876 MT |
43 | EMPTY_LINE = "COMMENT: \\n" |
44 | HEADLINE = "COMMENT:---- %s ----\\c" | |
89c9cbc1 | 45 |