Commit 0c3d467bd6a914d44dbc273609640cdbc808930b

Authored by Georg Hopp
1 parent a4cab3ef

change to 10 seconds interval

@@ -67,17 +67,19 @@ @@ -67,17 +67,19 @@
67 "$(\"#ctime\").empty().append(date.toString());" \ 67 "$(\"#ctime\").empty().append(date.toString());" \
68 "vnext = data.vnext;" \ 68 "vnext = data.vnext;" \
69 "$(\"#value\").empty().append(data.value);" \ 69 "$(\"#value\").empty().append(data.value);" \
  70 + "$(\"#vnext\").empty().append(vnext);" \
70 "});" \ 71 "});" \
71 "} else {" \ 72 "} else {" \
72 "vnext--;" \ 73 "vnext--;" \
  74 + "$(\"#vnext\").empty().append(vnext);" \
73 "}" \ 75 "}" \
74 - "$(\"#vnext\").empty().append(vnext);" \  
75 "};" \ 76 "};" \
76 "$(\"#msg\").ajaxError(function(event, request, settings) {" \ 77 "$(\"#msg\").ajaxError(function(event, request, settings) {" \
77 "$(this).append(" \ 78 "$(this).append(" \
78 "\"<li>Error requesting page \" + " \ 79 "\"<li>Error requesting page \" + " \
79 "settings.url + " \ 80 "settings.url + " \
80 "\"</li>\");" \ 81 "\"</li>\");" \
  82 + "vnext = 0;" \
81 "});" \ 83 "});" \
82 "$(\"a\").click(function() {" \ 84 "$(\"a\").click(function() {" \
83 "intervalId = setInterval(counter, 1000);" \ 85 "intervalId = setInterval(counter, 1000);" \
@@ -56,7 +56,7 @@ httpResponseRandval(time_t ctime, int value) @@ -56,7 +56,7 @@ httpResponseRandval(time_t ctime, int value)
56 56
57 message->type = HTTP_MESSAGE_BUFFERED; 57 message->type = HTTP_MESSAGE_BUFFERED;
58 58
59 - remaining = 30 - (time(NULL) - ctime); 59 + remaining = 10 - (time(NULL) - ctime);
60 60
61 nbuf = sprintf(buffer, RESP_DATA, ctime, remaining, value); 61 nbuf = sprintf(buffer, RESP_DATA, ctime, remaining, value);
62 62
@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 42
43 #include "utils/signalHandling.h" 43 #include "utils/signalHandling.h"
44 44
45 -#define DEFAULT_SECS 30 45 +#define DEFAULT_SECS 10
46 //#define DEFAULT_USECS (1000000 / HZ * 2) 46 //#define DEFAULT_USECS (1000000 / HZ * 2)
47 //#define DEFAULT_SECS 1 47 //#define DEFAULT_SECS 1
48 #define DEFAULT_USECS 0 48 #define DEFAULT_USECS 0
Please register or login to post a comment