From b8aaa215d3c84b0aec68d305493b302703e55a22 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 22 Apr 2017 07:32:13 +0200 Subject: [PATCH] DroidFish: Use 'M' prefix for NPS values larger than 1e8. --- .../org/petero/droidfish/gamelogic/DroidChessController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DroidFish/src/org/petero/droidfish/gamelogic/DroidChessController.java b/DroidFish/src/org/petero/droidfish/gamelogic/DroidChessController.java index b97c75b..ae46366 100644 --- a/DroidFish/src/org/petero/droidfish/gamelogic/DroidChessController.java +++ b/DroidFish/src/org/petero/droidfish/gamelogic/DroidChessController.java @@ -755,7 +755,10 @@ public class DroidChessController { } int nps = currNps; String npsPrefix = ""; - if (nps > 100000) { + if (nps > 100000000) { + nps /= 1000000; + npsPrefix = "M"; + } else if (nps > 100000) { nps /= 1000; npsPrefix = "k"; }