提交 a83cdd80 编写于 作者: S slguan

fix the issue $404

上级 89b72283
......@@ -323,7 +323,7 @@ char *tprefix(char *prefix) {
}
void tprintf(const char *const flags, int dflag, const char *const format, ...) {
if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < (tsMinimalLogDirGB / 2)) {
if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < tsMinimalLogDirGB) {
printf("server disk space remain %.3f GB, stop write log\n", tsAvailLogDirGB);
fflush(stdout);
return;
......@@ -375,7 +375,7 @@ void tprintf(const char *const flags, int dflag, const char *const format, ...)
}
void taosDumpData(unsigned char *msg, int len) {
if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < (tsMinimalLogDirGB / 2)) {
if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < tsMinimalLogDirGB) {
printf("server disk space remain %.3f GB, stop write log\n", tsAvailLogDirGB);
fflush(stdout);
return;
......@@ -404,7 +404,7 @@ void taosDumpData(unsigned char *msg, int len) {
}
void taosPrintLongString(const char *const flags, int dflag, const char *const format, ...) {
if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < (tsMinimalLogDirGB / 2)) {
if (tsTotalLogDirGB != 0 && tsAvailLogDirGB < tsMinimalLogDirGB) {
printf("server disk space remain %.3f GB, stop write log\n", tsAvailLogDirGB);
fflush(stdout);
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册