Commit 0c3d467bd6a914d44dbc273609640cdbc808930b

Authored by Georg Hopp
1 parent a4cab3ef

change to 10 seconds interval

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