File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,10 @@ protected function driverConnect()
161161 public function getStats ()
162162 {
163163 $ stats = (array ) $ this ->instance ->getstats ();
164+ $ stats [ 'uptime ' ] = (isset ($ stats [ 'uptime ' ]) ? $ stats [ 'uptime ' ] : 0 );
165+ $ stats [ 'version ' ] = (isset ($ stats [ 'version ' ]) ? $ stats [ 'version ' ] : 'UnknownVersion ' );
166+ $ stats [ 'bytes ' ] = (isset ($ stats [ 'bytes ' ]) ? $ stats [ 'version ' ] : 0 );
167+
164168 $ date = (new \DateTime ())->setTimestamp (time () - $ stats [ 'uptime ' ]);
165169
166170 return (new driverStatistic ())
Original file line number Diff line number Diff line change @@ -160,6 +160,10 @@ protected function driverConnect()
160160 public function getStats ()
161161 {
162162 $ stats = (array ) $ this ->instance ->getStats ();
163+ $ stats [ 'uptime ' ] = (isset ($ stats [ 'uptime ' ]) ? $ stats [ 'uptime ' ] : 0 );
164+ $ stats [ 'version ' ] = (isset ($ stats [ 'version ' ]) ? $ stats [ 'version ' ] : 'UnknownVersion ' );
165+ $ stats [ 'bytes ' ] = (isset ($ stats [ 'bytes ' ]) ? $ stats [ 'version ' ] : 0 );
166+
163167 $ date = (new \DateTime ())->setTimestamp (time () - $ stats [ 'uptime ' ]);
164168
165169 return (new driverStatistic ())
You can’t perform that action at this time.
0 commit comments