Small refactoring.

This commit is contained in:
Johannes Mockenhaupt 2017-08-27 20:30:58 +02:00
parent b85f5324de
commit e3a732d53d
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -311,8 +311,7 @@ public class RuffyScripter {
returnable.cmdResult.state = readPumpState();
}
long connectDurationSec = (executionStart - connectStart) / 1000;
long now = System.currentTimeMillis();
long executionDurationSec = (now - executionStart) / 1000;
long executionDurationSec = (System.currentTimeMillis() - executionStart) / 1000;
returnable.cmdResult.duration = "Connect: " + connectDurationSec + "s, execution: " + executionDurationSec + "s";
log.debug("Command result: " + returnable.cmdResult);
return returnable.cmdResult;