not showing lb diff if new lb position is not qualified

This commit is contained in:
Jack 2020-09-21 17:48:18 +01:00
parent 20eae342cd
commit 33570c6bf4

View file

@ -2022,7 +2022,7 @@ function showResult(difficultyFailed = false) {
const glbMemory =
dbSnapshot.lbMemory[config.mode + mode2].global;
let dontShowGlobalDiff =
glbMemory == null || glbMemory === -1 ? true : false;
glbMemory == null || glbMemory === -1 || glb === -1 ? true : false;
let globalLbDiff = null;
if (glb === null) {
globalLbString = "global: not found";
@ -2077,7 +2077,7 @@ function showResult(difficultyFailed = false) {
const dlbMemory =
dbSnapshot.lbMemory[config.mode + mode2].daily;
let dontShowDailyDiff =
dlbMemory == null || dlbMemory === -1 ? true : false;
dlbMemory == null || dlbMemory === -1 || dlb === -1 ? true : false;
let dailyLbDiff = null;
if (dlb === null) {
dailyLbString = "daily: not found";