[chronojump] Fixed UploadEncoderData getLoss from 0-1 to 0-100%
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed UploadEncoderData getLoss from 0-1 to 0-100%
- Date: Mon, 6 Nov 2017 22:42:05 +0000 (UTC)
commit d10cc880570ccba4cb0c1b5950194fbf8447db34
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Nov 6 23:41:02 2017 +0100
Fixed UploadEncoderData getLoss from 0-1 to 0-100%
src/json.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/json.cs b/src/json.cs
index a43548a..70892d0 100644
--- a/src/json.cs
+++ b/src/json.cs
@@ -1074,7 +1074,7 @@ public class UploadEncoderDataObject
if(compareTo > highest)
highest = compareTo;
}
- return Convert.ToInt32(Util.DivideSafeFraction(100.0 * (highest - lowest), highest));
+ return Convert.ToInt32(Util.DivideSafe(100.0 * (highest - lowest), highest));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]