Skip to content

Commit 81c30c8

Browse files
committed
Fixes #8 add Date to graphs
1 parent fe9059c commit 81c30c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

class/RRD.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ public static function getDSOption($dsname){
8181
}
8282

8383
public static function createRRDGraph($filename,$options){
84+
$config = json_decode(file_get_contents("config.json"),true);
85+
$options[] = "--watermark";
86+
$options[] = $config["communityName"]." - ".date("c");
8487
$ret = rrd_graph($filename,$options);
8588
echo rrd_error();
8689
}

0 commit comments

Comments
 (0)