From 359a236887fcef52d9bf79a699c2065821e8849d Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Thu, 26 Apr 2012 14:24:10 -0400 Subject: [PATCH] Bug 746215 - Report total checkerboarding instead of average checkerboarding for tcheckerboard tests. r=jmaher --- build/mobile/robocop/FennecNativeDriver.java.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/mobile/robocop/FennecNativeDriver.java.in b/build/mobile/robocop/FennecNativeDriver.java.in index 7a1fed619cb..ca295119ba3 100644 --- a/build/mobile/robocop/FennecNativeDriver.java.in +++ b/build/mobile/robocop/FennecNativeDriver.java.in @@ -265,11 +265,11 @@ public class FennecNativeDriver implements Driver { try { Object [] params = null; List checkerboard = (List)_stopCheckerboardRecording.invoke(null, params); - float completeness = 0; + float total = 0; for (float val : checkerboard) { - completeness += (1.0f - val); + total += val; } - return completeness / (float)checkerboard.size(); + return total * 100.0f; } catch (IllegalAccessException e) { log(LogLevel.ERROR, e); } catch (InvocationTargetException e) {