Small refactoring.
This commit is contained in:
parent
b85f5324de
commit
e3a732d53d
1 changed files with 1 additions and 2 deletions
|
@ -311,8 +311,7 @@ public class RuffyScripter {
|
||||||
returnable.cmdResult.state = readPumpState();
|
returnable.cmdResult.state = readPumpState();
|
||||||
}
|
}
|
||||||
long connectDurationSec = (executionStart - connectStart) / 1000;
|
long connectDurationSec = (executionStart - connectStart) / 1000;
|
||||||
long now = System.currentTimeMillis();
|
long executionDurationSec = (System.currentTimeMillis() - executionStart) / 1000;
|
||||||
long executionDurationSec = (now - executionStart) / 1000;
|
|
||||||
returnable.cmdResult.duration = "Connect: " + connectDurationSec + "s, execution: " + executionDurationSec + "s";
|
returnable.cmdResult.duration = "Connect: " + connectDurationSec + "s, execution: " + executionDurationSec + "s";
|
||||||
log.debug("Command result: " + returnable.cmdResult);
|
log.debug("Command result: " + returnable.cmdResult);
|
||||||
return returnable.cmdResult;
|
return returnable.cmdResult;
|
||||||
|
|
Loading…
Reference in a new issue