IDEMPIERE-4072 iDempiere Monitor: Implement server and cache details for cluster node. minor fix for multi block transfer.
This commit is contained in:
parent
730d221357
commit
45bc22b734
|
@ -96,13 +96,6 @@ public class GetLogInfoCallable extends LogFileCallable implements Callable<GetL
|
||||||
this.noOfBlocks = noOfBlocks;
|
this.noOfBlocks = noOfBlocks;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the serialversionuid
|
|
||||||
*/
|
|
||||||
public static long getSerialversionuid() {
|
|
||||||
return serialVersionUID;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the fileName
|
* @return the fileName
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -95,7 +95,7 @@ public class ReadLogCallable extends LogFileCallable implements Callable<byte[]>
|
||||||
while((bytesRead = channel.read(buffer)) > 0) {
|
while((bytesRead = channel.read(buffer)) > 0) {
|
||||||
totalRead += bytesRead;
|
totalRead += bytesRead;
|
||||||
if (totalRead > BLOCK_SIZE) {
|
if (totalRead > BLOCK_SIZE) {
|
||||||
int diff = BLOCK_SIZE - totalRead;
|
int diff = totalRead - BLOCK_SIZE;
|
||||||
bytesRead = bytesRead - diff;
|
bytesRead = bytesRead - diff;
|
||||||
totalRead = BLOCK_SIZE;
|
totalRead = BLOCK_SIZE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue