diff options
author | Pim van den Berg | 2014-01-12 14:56:19 +0100 |
---|---|---|
committer | Pim van den Berg | 2014-01-12 14:56:19 +0100 |
commit | 39ca2ff699bac79043bbeac9534dbf1f28df4d2b (patch) | |
tree | ee3e2551e9b734358ba315e5a2a21efcfc569dbb /detail.php | |
parent | Add a configuration option for sync/async choice for the canvas graphs (diff) | |
download | apt-panopticon_cgp-39ca2ff699bac79043bbeac9534dbf1f28df4d2b.zip apt-panopticon_cgp-39ca2ff699bac79043bbeac9534dbf1f28df4d2b.tar.gz apt-panopticon_cgp-39ca2ff699bac79043bbeac9534dbf1f28df4d2b.tar.bz2 apt-panopticon_cgp-39ca2ff699bac79043bbeac9534dbf1f28df4d2b.tar.xz |
add graph_type "hybrid" to show canvas on detail page, png on the others
Diffstat (limited to '')
-rw-r--r-- | detail.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -11,6 +11,10 @@ if (empty($_GET['x'])) | |||
11 | if (empty($_GET['y'])) | 11 | if (empty($_GET['y'])) |
12 | $_GET['y'] = $CONFIG['detail-height']; | 12 | $_GET['y'] = $CONFIG['detail-height']; |
13 | 13 | ||
14 | # set graph_type to canvas if hybrid | ||
15 | if ($CONFIG['graph_type'] == 'hybrid') | ||
16 | $CONFIG['graph_type'] = 'canvas'; | ||
17 | |||
14 | $host = validate_get(GET('h'), 'host'); | 18 | $host = validate_get(GET('h'), 'host'); |
15 | $plugin = validate_get(GET('p'), 'plugin'); | 19 | $plugin = validate_get(GET('p'), 'plugin'); |
16 | $pinstance = validate_get(GET('pi'), 'pinstance'); | 20 | $pinstance = validate_get(GET('pi'), 'pinstance'); |