Skip to content

Commit af36857

Browse files
authored
#34 fixing the timeLeft to consistently be secs
1 parent 55e4180 commit af36857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvAccessJava/src/org/epics/pvaccess/client/rpc/RPCClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public PVStructure request(PVStructure pvArgument, double timeout)
122122

123123
synchronized (resultMonitor) {
124124
sendRequestInternal(timeout, pvArgument);
125-
long timeLeft = Math.max(timeoutMs - (System.currentTimeMillis() - startTime), 0);
125+
long timeLeft = Math.max((timeoutMs - (System.currentTimeMillis() - startTime))/1000, 0);
126126
if (waitResponse(timeLeft))
127127
{
128128
if (status.isSuccess())

0 commit comments

Comments
 (0)