Normalized on operating in float seconds rather than milliseconds.

This commit is contained in:
Andrey Savchenko committed 2018-02-22 13:14:15 +02:00
1 parent 624e282905
commit 1e75033f25
8 files changed
+15 -19

No files matched your search

+2 -2
View File
@@ -26,7 +26,7 @@ class Timeline_Iterator implements \Iterator {
global $timestart;
$this->origin = $timestart * 1000;
$this->origin = $timestart;
$this->iterator = $iterator;
}
@@ -71,7 +71,7 @@ class Timeline_Iterator implements \Iterator {
* Rewind to a topmost record set.
*/
public function rewind() {
$this->total = microtime( true ) * 1000 - $this->origin;
$this->total = microtime( true ) - $this->origin;
$this->current = $this->iterator;
}