Commit 79009b98 by chenweitao

Merge branch 'working' into 'master'

初始热度非long可能去除

See merge request !90
parents 8d85b0c2 dbe4bae9
......@@ -127,7 +127,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());
......@@ -213,7 +213,7 @@ public class HotSearchCacheDAO {
}
}
}catch (Exception e){
log.error("数据存储时出错:{}", e);
log.error("数据存储时出错:", e);
}
}
......
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