Skip to content

Commit cfb88dd

Browse files
committed
test with 0 timestamp
1 parent 07f792f commit cfb88dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/LogFile.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ public function getLastScannedFilePositionForQuery(?string $query = ''): ?int
107107
public function earliestTimestamp(): int
108108
{
109109
return $this->getMetadata('earliest_timestamp')
110-
?? LogViewer::getFilesystem()->exists($this->path) ? LogViewer::getFilesystem()->lastModified($this->path) : 0;
110+
?? 0;
111+
// ?? LogViewer::getFilesystem()->exists($this->path) ? LogViewer::getFilesystem()->lastModified($this->path) : 0;
111112
}
112113

113114
public function latestTimestamp(): int
114115
{
115116
return $this->getMetadata('latest_timestamp')
116-
?? LogViewer::getFilesystem()->exists($this->path) ? LogViewer::getFilesystem()->lastModified($this->path) : 0;
117+
?? 0;
118+
// ?? LogViewer::getFilesystem()->exists($this->path) ? LogViewer::getFilesystem()->lastModified($this->path) : 0;
117119
}
118120

119121
public function scan(int $maxBytesToScan = null, bool $force = false): void

0 commit comments

Comments
 (0)