浏览代码

尝试修复打印问题

龚成明 2 年之前
父节点
当前提交
f0b4622a9b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/monitors/price-monitor.js

+ 1 - 1
scripts/monitors/price-monitor.js

@@ -34,7 +34,7 @@ const showPrices = function(context, task) {
 
     // 需要输出到文件的打印逻辑
     const isLogToFile = (() => {
-      return percentage > PriceMonitorConfig.percentageLimit && (PrevOneInchPrice !== OneInchPrice && PrevBinancePrice !== BinancePrice)
+      return percentage > PriceMonitorConfig.percentageLimit && (PrevOneInchPrice !== OneInchPrice || PrevBinancePrice !== BinancePrice)
     })()
     table.showLine(rows, isLogToFile ? fileLogger : undefined)