Commit 453a9253 by chenweitao

Merge branch 'working' into 'master'

评论量讨论量数据类型超限

See merge request !86
parents 1106289b a4f9a1e2
......@@ -125,7 +125,7 @@ public class HotSearchCacheDAO {
//计算上升速度
double riseSpeed = nowDoc.containsKey("riseSpeed")?nowDoc.getDouble("riseSpeed"):0.00;
if(nonNull(lastCount) && nowDoc.containsKey("firstCount")) {
long firstCount = nowDoc.getLong("firstCount");
long firstCount = Long.parseLong(nowDoc.get("firstCount").toString());
riseSpeed = ((double)(lastCount - firstCount)/(double)firstCount)*1000/((double)duration);
}
// endTime = getEndTime(type, new Date());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment