minor logging progress
This commit is contained in:
parent
060d05d911
commit
83c43cb8df
|
@ -4,6 +4,7 @@ import com.rusefi.shared.FileUtil;
|
|||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* Andrey Belomutskiy, (c) 2013-2020
|
||||
|
@ -62,4 +63,11 @@ public class ConfigurationImage {
|
|||
System.arraycopy(content, offset, r, 0, size);
|
||||
return r;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ConfigurationImage{" +
|
||||
"size=" + content.length +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,8 +47,9 @@ public class PCanSandbox {
|
|||
log.info("requestOutputChannels " + response);
|
||||
});
|
||||
|
||||
long start = System.currentTimeMillis();
|
||||
ConfigurationImage ci = SandboxCommon.readImage(tsStream, linkManager);
|
||||
log.info("Got ConfigurationImage " + ci);
|
||||
log.info("Got ConfigurationImage " + ci + " in " + (System.currentTimeMillis() - start) + "ms");
|
||||
|
||||
Thread.sleep(5 * SECOND);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ public class SandboxCommon {
|
|||
|
||||
imageLatch.await(1, TimeUnit.MINUTES);
|
||||
ConfigurationImage ci = configurationImageAtomicReference.get();
|
||||
log.info("Got ConfigurationImage " + ci + ", " + ci.getSize());
|
||||
log.info("Got ConfigurationImage " + ci + ", size=" + ci.getSize());
|
||||
return ci;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue