Skip to content

Commit

Permalink
#18 TypeError getPowerSumOfLog()
Browse files Browse the repository at this point in the history
#18 Uncaught TypeError: Argument 3 passed to E3DC::getPowerSumOfLog() must be of the type int
  • Loading branch information
Brovning committed Feb 25, 2022
1 parent da8b3ef commit f54aefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/myFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ private function getPowerSumOfLog(int $logId, int $startTime, int $endTime, int
// Zu viele Logwerte in der TimeRange vorhanden
elseif (10000 <= count($buffer))
{
$intervallEdge = $startTime + ($endTime - $startTime) / 2;
$intervallEdge = (int)($startTime + ($endTime - $startTime) / 2);
$bufferSum = $this->getPowerSumOfLog($logId, $startTime, $intervallEdge, $mode) + $this->getPowerSumOfLog($logId, $intervallEdge, $endTime, $mode);
}
// Logwerte vorhanden
Expand Down

0 comments on commit f54aefb

Please sign in to comment.