Fixed 'available' loop in tcpPortHandler. Dramatic improvement in performance.

This commit is contained in:
Alexander Nozik 2016-10-20 06:36:41 +03:00
parent 3226c1aebc
commit 1faf5b452c
3 changed files with 8 additions and 3 deletions

View File

@ -13,7 +13,6 @@ configurations {
compile.exclude module: 'groovy'
compile.exclude module: 'groovy-all'
compile.exclude module: 'shichimifx'
compile.exclude module: 'jssc'
compile.exclude module: 'zt-zip'
}

View File

@ -261,7 +261,7 @@ public class PKT8Device extends PortSensor<PKT8Result> {
.map(it -> ((StorageConnection) it.getKey()).getStorage()).collect(Collectors.toList());
storages.forEach(storage -> {
String suffix = Integer.toString((int) DateTimeUtils.now().toEpochMilli());
String suffix = Long.toString(DateTimeUtils.now().toEpochMilli());
PointLoader pointLoader = null;
try {

View File

@ -1,12 +1,18 @@
apply plugin: 'application'
version = "0.4.1"
version = "0.4.2"
if (!hasProperty('mainClass')) {
ext.mainClass = 'inr.numass.readvac.app.ReadVac'
}
mainClassName = mainClass
configurations {
compile.exclude module: 'groovy'
compile.exclude module: 'groovy-all'
compile.exclude module: 'shichimifx'
compile.exclude module: 'zt-zip'
}
dependencies {
compile project(':numass-storage:numass-client')