Skip to content

Commit c530959

Browse files
authored
Merge pull request #36 from epics-base/Issue_34
#34 fixing the timeLeft to consistently be secs
2 parents 55e4180 + af36857 commit c530959

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)