" +#define WEBPAGE_START1 "\n
" +#define WEBPAGE_START2 "" #define WEBPAGE_END "
" if (output_methods & TO_HTTP) { - webpage = WEBPAGE_START; + webpage = WEBPAGE_START1; + if(http_refresh) { + webpage.append(""); + } + webpage.append(WEBPAGE_START2); } #endif #ifdef BUILD_X11 @@ -2651,6 +2662,9 @@ static void set_default_configurations(void) format_human_readable = 1; top_mem = 0; top_time = 0; +#ifdef BUILD_HTTP + http_refresh = false; +#endif #ifdef BUILD_IOSTATS top_io = 0; #endif @@ -3304,6 +3318,11 @@ char load_config_file(const char *f) httpd = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY, HTTPPORT, NULL, NULL, &sendanswer, NULL, MHD_OPTION_END); } } + CONF("http_refresh") { + if(string_to_bool(value)) { + http_refresh = true; + } + } #endif #ifdef BUILD_NCURSES CONF("out_to_ncurses") {