[chronojump] Fixed osVersion on ping to be shorter
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed osVersion on ping to be shorter
- Date: Mon, 26 Apr 2021 11:40:51 +0000 (UTC)
commit 83c9d4caeee45896175212eb92b22d1e11ac42f8
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Apr 26 13:39:31 2021 +0200
Fixed osVersion on ping to be shorter
src/json/json.cs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/json/json.cs b/src/json/json.cs
index 7694c080..f4bcd57c 100644
--- a/src/json/json.cs
+++ b/src/json/json.cs
@@ -380,9 +380,11 @@ public class Json
// Creates the json object
JsonObject json = new JsonObject();
- if(osVersion.Length > 15)
- osVersion = osVersion.Substring(0,15); //at server mysql max length of this param is
15 (windows returns a longer string)
+ LogB.Information("osVersion: " + osVersion);
+ if(osVersion.Length > 13)
+ osVersion = osVersion.Substring(0,13); //at server mysql max length of this param is
15 (windows returns a longer string)
+ LogB.Information("osVersion cutted: " + osVersion);
json.Add("os_version", osVersion);
if(cjVersion.Length > 11)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]