From 81c30c899bc032d6fe9918e280c684b75d5fb7f9 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Sun, 22 Nov 2015 14:26:21 +0100 Subject: [PATCH] Fixes #8 add Date to graphs --- class/RRD.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/class/RRD.php b/class/RRD.php index 3aaaf16..1b67825 100644 --- a/class/RRD.php +++ b/class/RRD.php @@ -81,6 +81,9 @@ public static function getDSOption($dsname){ } public static function createRRDGraph($filename,$options){ + $config = json_decode(file_get_contents("config.json"),true); + $options[] = "--watermark"; + $options[] = $config["communityName"]." - ".date("c"); $ret = rrd_graph($filename,$options); echo rrd_error(); }