Skip to content

Commit 079ca1f

Browse files
committed
Update Predis.php
1 parent 72a0a1a commit 079ca1f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Dashboards/Redis/Compatibility/Predis.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,7 @@ public function getSlowlog(int $count): ?array {
211211
}
212212

213213
public function resetSlowlog(): bool {
214-
$this->slowlog('RESET');
215-
216-
return true;
214+
return (string) $this->slowlog('RESET') === 'OK';
217215
}
218216

219217
/**

0 commit comments

Comments
 (0)