mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 19:34:08 +01:00
DroidFish: Use fewer decimal places to display engine thinking time when the time is large.
This commit is contained in:
parent
fb9bbdfda4
commit
4e24dd48da
|
@ -732,8 +732,15 @@ public class DroidChessController {
|
||||||
statStrTmp.append(String.format(Locale.US, "d:%d", currDepth));
|
statStrTmp.append(String.format(Locale.US, "d:%d", currDepth));
|
||||||
if (currMoveNr > 0)
|
if (currMoveNr > 0)
|
||||||
statStrTmp.append(String.format(Locale.US, " %d:%s", currMoveNr, currMoveStr));
|
statStrTmp.append(String.format(Locale.US, " %d:%s", currMoveNr, currMoveStr));
|
||||||
statStrTmp.append(String.format(Locale.US, " t:%.2f n:%d%s nps:%d%s",
|
if (currTime < 99995) {
|
||||||
currTime / 1000.0, nodes, nodesPrefix, nps, npsPrefix));
|
statStrTmp.append(String.format(Locale.US, " t:%.2f", currTime / 1000.0));
|
||||||
|
} else if (currTime < 999950) {
|
||||||
|
statStrTmp.append(String.format(Locale.US, " t:%.1f", currTime / 1000.0));
|
||||||
|
} else {
|
||||||
|
statStrTmp.append(String.format(Locale.US, " t:%d", (int)((currTime + 500) / 1000)));
|
||||||
|
}
|
||||||
|
statStrTmp.append(String.format(Locale.US, " n:%d%s nps:%d%s",
|
||||||
|
nodes, nodesPrefix, nps, npsPrefix));
|
||||||
if (currTBHits > 0) {
|
if (currTBHits > 0) {
|
||||||
long tbHits = currTBHits;
|
long tbHits = currTBHits;
|
||||||
String tbHitsPrefix = "";
|
String tbHitsPrefix = "";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user