修改保存文件模式
This commit is contained in:
parent
a4fa7c14a1
commit
96b19356b6
|
|
@ -80,6 +80,14 @@ public class DataBufferThread extends Thread {
|
|||
|
||||
}
|
||||
|
||||
if (bool){
|
||||
try {
|
||||
outputStream.flush();
|
||||
} catch (IOException e) {
|
||||
logger.error("Flush buffer data failed.", e);
|
||||
}
|
||||
}
|
||||
|
||||
if (file.length() > DATA_FILE_MAX_LENGTH) {
|
||||
convertFile();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue