show correct default for sreen duration; replace a magic number by the corresponding constant
This commit is contained in:
+1
-1
@@ -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-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-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-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-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-r <level>\tReport level [%d]\n", DEFAULT_REPORTLEVEL);
|
||||||
fprintf (stdout, "\t-i <bool>\tWhether to rotate the server info screen\n");
|
fprintf (stdout, "\t-i <bool>\tWhether to rotate the server info screen\n");
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ server_screen_init ()
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
server_screen->name = "Server screen";
|
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)) {
|
if ((rotate_server_screen == UNSET_INT ) || (rotate_server_screen == 1)) {
|
||||||
server_screen->priority = PRI_INFO;
|
server_screen->priority = PRI_INFO;
|
||||||
|
|||||||
Reference in New Issue
Block a user