test: fix printf format

This commit is contained in:
Alex Duan 2023-06-20 11:38:37 +08:00
parent 74879f1625
commit f4ad0d6b7b
1 changed files with 3 additions and 3 deletions

View File

@ -242,9 +242,9 @@ class TDTestCase:
return False
# warning performance
diff = (spend1 - spend2)*100/spend1
tdLog.info("spend1=%.2fs spend2=%.2fs diff=%.1f%%"%(spend1, spend2, diff))
if spend1 > spend2 and diff > 20:
diff = (spend2 - spend1)*100/spend1
tdLog.info("spend1=%.6fs spend2=%.6fs diff=%.1f%%"%(spend1, spend2, diff))
if spend2 > spend1 and diff > 20:
tdLog.info("warning: the diff for performance after spliting is over 20%")
return True