show correct default for sreen duration; replace a magic number by the corresponding constant

This commit is contained in:
marschap
2006-09-19 08:50:17 +00:00
parent 7707257e1e
commit e6b745d9d4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1007,7 +1007,7 @@ output_help_screen(void)
fprintf (stdout, "\t-a <addr>\tNetwork (IP) address to bind to [%s]\n", DEFAULT_BIND_ADDR);
fprintf (stdout, "\t-p <port>\tNetwork port to listen for connections on [%i]\n", DEFAULT_BIND_PORT);
fprintf (stdout, "\t-u <user>\tUser to run as [%s]\n", DEFAULT_USER);
fprintf (stdout, "\t-w <waittime>\tTime to pause at each screen (in seconds) [%d]\n", DEFAULT_SCREEN_DURATION);
fprintf (stdout, "\t-w <waittime>\tTime to pause at each screen (in seconds) [%d]\n", DEFAULT_SCREEN_DURATION/RENDER_FREQ);
fprintf (stdout, "\t-s <bool>\tIf set, reporting will be done using syslog\n");
fprintf (stdout, "\t-r <level>\tReport level [%d]\n", DEFAULT_REPORTLEVEL);
fprintf (stdout, "\t-i <bool>\tWhether to rotate the server info screen\n");
+1 -1
View File
@@ -53,7 +53,7 @@ server_screen_init ()
return -1;
}
server_screen->name = "Server screen";
server_screen->duration = 8; /* 1 second, instead of 4...*/
server_screen->duration = RENDER_FREQ; /* 1 second, instead of 4...*/
if ((rotate_server_screen == UNSET_INT ) || (rotate_server_screen == 1)) {
server_screen->priority = PRI_INFO;