Change 'knodes' to 'k nodes'

pull/9972/head
Benedikt Werner 2021-10-16 06:52:07 +02:00
parent 31cd3a5bb1
commit 2350fb26b9
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 2 additions and 2 deletions

View File

@ -49,14 +49,14 @@ function localEvalInfo(ctrl: ParentCtrl, evs: NodeEvals): Array<VNode | string>
},
})
);
else if (!evs.client.cloud && evs.client.knps) t.push(', ' + Math.round(evs.client.knps) + ' knodes/s');
else if (!evs.client.cloud && evs.client.knps) t.push(', ' + Math.round(evs.client.knps) + 'k nodes/s');
return t;
}
function threatInfo(ctrl: ParentCtrl, threat?: Tree.LocalEval | false): string {
if (!threat) return ctrl.trans.noarg('loadingEngine');
let t = ctrl.trans('depthX', (threat.depth || 0) + '/' + threat.maxDepth);
if (threat.knps) t += ', ' + Math.round(threat.knps) + ' knodes/s';
if (threat.knps) t += ', ' + Math.round(threat.knps) + 'k nodes/s';
return t;
}