mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
log writeback status only when size is > 0
This commit is contained in:
@@ -81,9 +81,10 @@ public class JObjectWriteback {
|
||||
try {
|
||||
while (true) {
|
||||
Thread.sleep(1000);
|
||||
Log.info("Writeback status: size="
|
||||
+ _currentSize.get() / 1024 / 1024 + "MB"
|
||||
+ " watermark=" + (_watermarkReached.get() ? "reached" : "not reached"));
|
||||
if (_currentSize.get() > 0)
|
||||
Log.info("Writeback status: size="
|
||||
+ _currentSize.get() / 1024 / 1024 + "MB"
|
||||
+ " watermark=" + (_watermarkReached.get() ? "reached" : "not reached"));
|
||||
}
|
||||
} catch (InterruptedException ignored) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user