no message
This commit is contained in:
@@ -227,7 +227,7 @@ private function GetValueAt(int $varId, int $timestamp, bool $nearestAfter = fal
|
|||||||
|
|
||||||
if ($nearestAfter) {
|
if ($nearestAfter) {
|
||||||
// Endwert: erster Wert >= Timestamp
|
// Endwert: erster Wert >= Timestamp
|
||||||
$values = @AC_GetLoggedValues($archiveID, $varId, $timestamp, $timestamp + 86400, 1);
|
$values = @AC_GetLoggedValues($archiveID, $varId, $timestamp, $timestamp + 864000, 1);
|
||||||
if ($values && count($values) > 0) return floatval($values[0]['Value']);
|
if ($values && count($values) > 0) return floatval($values[0]['Value']);
|
||||||
} else {
|
} else {
|
||||||
// Startwert: letzter Wert <= Timestamp
|
// Startwert: letzter Wert <= Timestamp
|
||||||
|
|||||||
Reference in New Issue
Block a user