Authored by wangshusheng

修改

... ... @@ -30,7 +30,6 @@ public class RfidManager {
@Override
public void onTagReported(JWReader jwReader, TagsEventArgs tagsEventArgs) {
// logger.info("data:{},epc:{},port:{},rssi:{}",tagsEventArgs.tag.DATA, tagsEventArgs.tag.EPC, tagsEventArgs.tag.PORT, tagsEventArgs.tag.RSSI);
System.out.println(tagsEventArgs.tag.DATA + " " + tagsEventArgs.tag.EPC + " " + tagsEventArgs.tag.PORT + " " + tagsEventArgs.tag.RSSI);
count++;
if(null==SocketConstant.allTags.get(jwReader.getIp())){
SocketConstant.allTags.put(jwReader.getIp(), new HashMap<>());
... ... @@ -39,7 +38,6 @@ public class RfidManager {
// logger.info("current ip is:{}, all tag is:{}", myRreader.getIp(), SocketConstant.allTags.get(myRreader.getIp()));
if(System.currentTimeMillis()-startTime>SocketConstant.STATISTIC_TIME){
logger.info("current ip is:{}, count is:{}, average is:{}", jwReader.getIp(), count, count*1000/SocketConstant.STATISTIC_TIME);
System.out.println("current ip is: " + jwReader.getIp() + ", count is:" + count + ", average is:" + count*1000/SocketConstant.STATISTIC_TIME);
count = 0;
startTime = System.currentTimeMillis();
}
... ...