[chronojump] Fixed bug in reaction time graph
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed bug in reaction time graph
- Date: Mon, 11 Nov 2013 16:57:00 +0000 (UTC)
commit bc8d9fa170d5ee7bb89917cc7a23954c7a439b05
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Nov 11 17:56:30 2013 +0100
Fixed bug in reaction time graph
src/gui/eventExecute.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 8ad65e6..9935526 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -909,6 +909,12 @@ Log.WriteLine("Preparing reactive A");
maxValue = Util.GetMax(
eventGraph.time.ToString() + "=" +
eventGraph.timePersonAVGAtSQL.ToString() + "=" +
eventGraph.timeSessionAVGAtSQL.ToString());
+
+ foreach(string myStr in eventGraph.rtsAtSQL) {
+ string [] rts = myStr.Split(new char[] {':'});
+ if(Convert.ToDouble(rts[5]) > maxValue)
+ maxValue = Convert.ToDouble(rts[5]);
+ }
} else {
maxValue = eventGraphConfigureWin.Max;
topMargin = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]