From 3c41b4bab00e9589651dd94f3d3a078002726477 Mon Sep 17 00:00:00 2001
From: Emanuele Laface <emanuele.laface@esss.se>
Date: Wed, 29 Jul 2020 18:43:29 +0200
Subject: [PATCH] Bug fixes

---
 PythonServer/screens/ts2_helevpres.py | 2 +-
 WebSites/ts2_helevpres/dashboard.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/PythonServer/screens/ts2_helevpres.py b/PythonServer/screens/ts2_helevpres.py
index 633c215..6f7383d 100755
--- a/PythonServer/screens/ts2_helevpres.py
+++ b/PythonServer/screens/ts2_helevpres.py
@@ -136,7 +136,7 @@ class ts2_helevpresScreen(Thread):
                         pv == "TS2-010CRM:Cryo-LT-001:MeasValue"
                         or pv == "TS2-010CRM:Cryo-LT-002:MeasValue"
                     ):
-                        if counter % 7200 == 0:
+                        if counter % 600 == 0:
                             json_dict[pv] = {}
                             for interval in intervals:
                                 start_date = (
diff --git a/WebSites/ts2_helevpres/dashboard.json b/WebSites/ts2_helevpres/dashboard.json
index edcef6a..02dfb10 100644
--- a/WebSites/ts2_helevpres/dashboard.json
+++ b/WebSites/ts2_helevpres/dashboard.json
@@ -168,7 +168,7 @@
 				{
 					"type": "html",
 					"settings": {
-						"html": "<script>\n    function setDatasource(event) {\n\t\tfreeboard.showLoadingIndicator(true);\n\t};\n</script>\n<div style=\"position:relative;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;\">\n        <select onchange=\"setDatasource()\" id=\"time-series\">\n            <option value=\"2w\">Two Weeks</option>\n            <option value=\"1w\">One Week</option>\n            <option value=\"2d\">Two Days</option>\n            <option value=\"1d\">One Day</option>\n            <option value=\"live\">Live</option>\n        </select>\n</div>",
+						"html": "<script>\n    function setDatasource(event) {\n\t\tfreeboard.showLoadingIndicator(true);\n\t};\n</script>\n<div style=\"position:relative;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;\">\n        <select style=\"padding:0px 0px\" onchange=\"setDatasource()\" id=\"time-series\">\n            <option value=\"2w\">Two Weeks</option>\n            <option value=\"1w\">One Week</option>\n            <option value=\"2d\">Two Days</option>\n            <option value=\"1d\">One Day</option>\n            <option value=\"live\">Live</option>\n        </select>\n</div>",
 						"height": 1
 					}
 				}
-- 
GitLab