projects
/
php-utility-classes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cf2bc47
)
make default fetch return the last entry and make sure we return C formatting; add...
author
Robert Kaiser
<kairo@kairo.at>
Sun, 26 Jun 2016 14:30:04 +0000
(16:30 +0200)
committer
Robert Kaiser
<kairo@kairo.at>
Sun, 26 Jun 2016 14:31:36 +0000
(16:31 +0200)
include/classes/rrdstat.php-class
patch
|
blob
|
blame
|
history
diff --git
a/include/classes/rrdstat.php-class
b/include/classes/rrdstat.php-class
index 55d0c37a3ff1d310d18e5299b38948fec1f62298..aa7079d1892f095ceb378378183ef75d977ed393 100644
(file)
--- a/
include/classes/rrdstat.php-class
+++ b/
include/classes/rrdstat.php-class
@@
-440,11
+440,11
@@
class rrdstat {
if (!is_numeric($end)) { $end = $this->last_update(); }
elseif ($end < 0) { $end += $this->last_update(); }
$end = intval($end/$resolution)*$resolution;
if (!is_numeric($end)) { $end = $this->last_update(); }
elseif ($end < 0) { $end += $this->last_update(); }
$end = intval($end/$resolution)*$resolution;
- if (!is_numeric($start)) { $start = $end; }
+ if (!is_numeric($start)) { $start = $end
-$resolution
; }
elseif ($start < 0) { $start += $end; }
$start = intval($start/$resolution)*$resolution;
elseif ($start < 0) { $start += $end; }
$start = intval($start/$resolution)*$resolution;
- $fetch_cmd = $this->rrdtool_bin.' fetch '.$this->rrd_file.' '.$cf.' --resolution '.$resolution
+ $fetch_cmd =
'LANG=C '.
$this->rrdtool_bin.' fetch '.$this->rrd_file.' '.$cf.' --resolution '.$resolution
.' --start '.$start.' --end '.$end;
$return = `$fetch_cmd 2>&1`;
.' --start '.$start.' --end '.$end;
$return = `$fetch_cmd 2>&1`;