Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/datasources/WeatherMapDataSource_rrd.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ function wmrrd_read_from_real_rrdtool_aggregate($rrdfile,$cf,$aggregatefn,$start
// rrdcached Support: strip "./" from Data Source
if ($map->daemon)
{
$rrdfile = trim($rrdfile,"^./");
if (substr($rrdfile, 0, 2) == "./")
$rrdfile = substr($rrdfile, 2);
}

// Assemble an array of command args.
Expand Down Expand Up @@ -209,7 +210,8 @@ function wmrrd_read_from_real_rrdtool($rrdfile,$cf,$start,$end,$dsnames, &$data,
// rrdcached Support: strip "./" from Data Source
if ($map->daemon)
{
$rrdfile = trim($rrdfile,"^./");
if (substr($rrdfile, 0, 2) == "./")
$rrdfile = substr($rrdfile, 2);
}

$args[] = "fetch";
Expand Down