[chronojump] Fixed problem in long line sent to R on "contacts" statistics



commit 851b6584eaa3fccae63045c6a1557e5488c0c711
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Nov 5 11:38:24 2014 +0100

    Fixed problem in long line sent to R on "contacts" statistics

 howto_compile.txt |    1 +
 src/stats/main.cs |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/howto_compile.txt b/howto_compile.txt
index a520667..14946a2 100644
--- a/howto_compile.txt
+++ b/howto_compile.txt
@@ -84,6 +84,7 @@ WINDOWS
 ----- 2014 -------------
 
 - to compile:
+(from remmina)(if there's any problem with the keyboard, just go outside of Linux GUI using CTRL+ALT+F1 and 
return)
 
 chronojump-shell
 cd chronojump
diff --git a/src/stats/main.cs b/src/stats/main.cs
index 7103286..4a13c6e 100644
--- a/src/stats/main.cs
+++ b/src/stats/main.cs
@@ -1009,6 +1009,11 @@ public class Stat
                                name = Util.ConvertToUnicode(name);
 
                        rowNamesD += sep2 + "'" + name  + "'";
+
+                       //each four values add a \n to not have a "long line" problem in sending data to R
+                       if((i+1) % 4 == 0)
+                               rowNamesD += "\n";
+                       
                        sep2 = ", ";
                }
                


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]