Showing
3 changed files
with
5 additions
and
3 deletions
... | ... | @@ -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 | ... | ... |
Please
register
or
login
to post a comment