IDEMPIERE-4072 iDempiere Monitor: Implement server and cache details for cluster node. minor fix for multi block transfer.

This commit is contained in:
Heng Sin Low 2019-10-25 19:51:49 +08:00
parent 730d221357
commit 45bc22b734
2 changed files with 1 additions and 8 deletions

View File

@ -96,13 +96,6 @@ public class GetLogInfoCallable extends LogFileCallable implements Callable<GetL
this.noOfBlocks = noOfBlocks;
}
/**
* @return the serialversionuid
*/
public static long getSerialversionuid() {
return serialVersionUID;
}
/**
* @return the fileName
*/

View File

@ -95,7 +95,7 @@ public class ReadLogCallable extends LogFileCallable implements Callable<byte[]>
while((bytesRead = channel.read(buffer)) > 0) {
totalRead += bytesRead;
if (totalRead > BLOCK_SIZE) {
int diff = BLOCK_SIZE - totalRead;
int diff = totalRead - BLOCK_SIZE;
bytesRead = bytesRead - diff;
totalRead = BLOCK_SIZE;
}