@@ -32,6 +32,7 @@ struct section {
3232
3333struct config {
3434 int warning_when_close_dialog ;
35+ int close_err_cache_miss_page ;
3536 struct section * section ;
3637};
3738
@@ -97,10 +98,14 @@ static void parse_conf(char *data, struct config *conf)
9798 break ;
9899 case '@' :
99100 if (global ) {
100- if (line == "@WARNING_WHEN_CLOSE_DIALOG" )
101+ if (strcmp ( line , "@WARNING_WHEN_CLOSE_DIALOG" ) == 0 )
101102 {
102103 conf -> warning_when_close_dialog = 1 ;
103104 }
105+ if (strcmp (line , "@CLOSE_ERR_CACHE_MISS_PAGE" ) == 0 )
106+ {
107+ conf -> close_err_cache_miss_page = 1 ;
108+ }
104109 }
105110 break ;
106111 case '-' :
@@ -181,6 +186,11 @@ static char *dump_json(struct config *conf)
181186 strbuf_concat (& sb , _itoa (conf -> warning_when_close_dialog , buf , 10 ));
182187 strbuf_putchar (& sb , ',' );
183188
189+ /* CloseErrCacheMissPage */
190+ strbuf_concat (& sb , "\"CloseErrCacheMissPage\":" );
191+ strbuf_concat (& sb , _itoa (conf -> close_err_cache_miss_page , buf , 10 ));
192+ strbuf_putchar (& sb , ',' );
193+
184194 /* Sections */
185195 strbuf_concat (& sb , "\"Sections\":[" );
186196
0 commit comments