File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class ServerMetric {
15
15
16
16
const CACHE_UPTIME_TTL = 300 ;
17
17
18
- public static function & getLatestResponseTime ($ server_id ) {
18
+ public static function getLatestResponseTime ($ server_id ) {
19
19
$ cache_key = "bnetdocs-servermetric-lastms- " . (int ) $ server_id ;
20
20
$ cache_val = Common::$ cache ->get ($ cache_key );
21
21
if ($ cache_val !== false ) return $ cache_val ;
@@ -40,7 +40,7 @@ public static function &getLatestResponseTime($server_id) {
40
40
return $ obj ->response_time ;
41
41
}
42
42
43
- public static function & getUptime ($ server_id ) {
43
+ public static function getUptime ($ server_id ) {
44
44
$ cache_key = "bnetdocs-servermetric-uptime- " . (int ) $ server_id ;
45
45
$ cache_val = Common::$ cache ->get ($ cache_key );
46
46
if ($ cache_val !== false ) return unserialize ($ cache_val );
You can’t perform that action at this time.
0 commit comments