Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 0c55b848 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

graph request size

parent b74e2bf6
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,10 @@ namespace TUGraz.VectoCore.Tests.Utils
}
values = values.Replace("NaN", "0");
values = Regex.Replace(values, @"\..*?,", ","); // remove all decimal places to reduce request size
if (values.Length > 14000) {
// remove all decimal places to reduce request size
values = Regex.Replace(values, @"\..*?,", ",");
}
var maxX = (int)Math.Ceiling(x.ToDouble().Max());
images.Add(CreateGraphStream(xfield.GetCaption(), yfield.GetCaption(), maxX, values));
}
......@@ -124,7 +127,10 @@ namespace TUGraz.VectoCore.Tests.Utils
}
values = values.Replace("NaN", "0");
values = Regex.Replace(values, @"\..*?,", ","); // remove all decimal places to reduce request size
if (values.Length > 14000) {
// remove all decimal places to reduce request size
values = Regex.Replace(values, @"\..*?,", ",");
}
var maxX = (int)Math.Ceiling(Math.Max(x.ToDouble().Max(), x2.ToDouble().Max()));
images.Add(CreateGraphStream(xfield.GetCaption(), yfield.GetCaption(), maxX, values));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment