Skip to content

Commit

Permalink
Fixed #759
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Sep 15, 2020
1 parent 640cb82 commit 81e9841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Phpfastcache/Drivers/Memcached/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public function driverCheck(): bool
public function getStats(): DriverStatistic
{
$stats = current($this->instance->getStats());
$stats['uptime'] = (isset($stats['uptime']) ? $stats['uptime'] : 0);
$stats['version'] = (isset($stats['version']) ? $stats['version'] : $this->instance->getVersion());
$stats['bytes'] = (isset($stats['bytes']) ? $stats['version'] : 0);
$stats['uptime'] = $stats['uptime'] ?? 0;
$stats['bytes'] = $stats['bytes'] ?? 0;
$stats['version'] = $stats['version'] ?? $this->instance->getVersion();

$date = (new DateTime())->setTimestamp(time() - $stats['uptime']);

Expand Down

0 comments on commit 81e9841

Please sign in to comment.