diff options
author | Pim van den Berg | 2013-12-29 16:44:38 +0100 |
---|---|---|
committer | Pim van den Berg | 2013-12-29 16:53:46 +0100 |
commit | c932f370da4e7876a615e4cd8b23a281ac360c3a (patch) | |
tree | d4ee2d94c5843b025a36e70fab6ec1e09ebd6ae0 /conf | |
parent | fix heigth -> height typo (diff) | |
download | apt-panopticon_cgp-c932f370da4e7876a615e4cd8b23a281ac360c3a.zip apt-panopticon_cgp-c932f370da4e7876a615e4cd8b23a281ac360c3a.tar.gz apt-panopticon_cgp-c932f370da4e7876a615e4cd8b23a281ac360c3a.tar.bz2 apt-panopticon_cgp-c932f370da4e7876a615e4cd8b23a281ac360c3a.tar.xz |
graph: add configurable limit to graph width/height
Closes: https://github.com/pommi/CGP/pull/34
Diffstat (limited to 'conf')
-rw-r--r-- | conf/config.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/config.php b/conf/config.php index 5ce761b..26172b1 100644 --- a/conf/config.php +++ b/conf/config.php | |||
@@ -63,6 +63,9 @@ $CONFIG['height'] = 175; | |||
63 | # default width/height of detailed graphs | 63 | # default width/height of detailed graphs |
64 | $CONFIG['detail-width'] = 800; | 64 | $CONFIG['detail-width'] = 800; |
65 | $CONFIG['detail-height'] = 350; | 65 | $CONFIG['detail-height'] = 350; |
66 | # max width/height of a graph (to prevent from OOM) | ||
67 | $CONFIG['max-width'] = $CONFIG['detail-width'] * 2; | ||
68 | $CONFIG['max-height'] = $CONFIG['detail-height'] * 2; | ||
66 | 69 | ||
67 | # collectd's unix socket (unixsock plugin) | 70 | # collectd's unix socket (unixsock plugin) |
68 | # enabled: 'unix:///var/run/collectd-unixsock' | 71 | # enabled: 'unix:///var/run/collectd-unixsock' |