|
@@ -89,7 +89,11 @@ function subscribe_message(&$quit, &$redis, $channels)
|
|
|
$ratios = $val['ratios'];
|
|
|
if(empty($ratios)) continue;
|
|
|
|
|
|
+ $start = microtime(true);
|
|
|
refill\RefillFactory::instance()->UpdateRatio($ratios);
|
|
|
+ $use_time = microtime(true) - $start;
|
|
|
+ $msg = sprintf("subscribe_message UpdateRatio use_time=%.6f",$use_time);
|
|
|
+ Log::record($msg,Log::DEBUG);
|
|
|
}
|
|
|
else {
|
|
|
Log::record("subscribe_message recv mgs:{$sub_type}-{$channel}-{$type}",Log::DEBUG);
|