Skip to content

Commit

Permalink
Fixes #8 add Date to graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
wattnpapa committed Nov 22, 2015
1 parent fe9059c commit 81c30c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions class/RRD.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 81c30c8

Please sign in to comment.