mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 10:48:12 +02:00
nm-online: set the timeout upper limit to 2073600 seconds
In some situations 3600 seconds is not enough. The upper limit should be 2073600 seconds, 24 days. In addition, this limit should be documented. https://bugzilla.redhat.com/show_bug.cgi?id=2025617
This commit is contained in:
parent
12f03636d0
commit
6430a7d70c
1 changed files with 3 additions and 2 deletions
|
|
@ -246,7 +246,8 @@ main(int argc, char *argv[])
|
|||
0,
|
||||
G_OPTION_ARG_INT,
|
||||
&t_secs,
|
||||
N_("Time to wait for a connection, in seconds (without the option, default value is 30)"),
|
||||
N_("Time to wait for a connection, in seconds (without the option, default value is 30). "
|
||||
"Maximum value is 2073600 seconds."),
|
||||
"<timeout>"},
|
||||
{"exit",
|
||||
'x',
|
||||
|
|
@ -289,7 +290,7 @@ main(int argc, char *argv[])
|
|||
return EXIT_FAILURE_ERROR;
|
||||
}
|
||||
|
||||
if (t_secs < 0 || t_secs > 3600) {
|
||||
if (t_secs < 0 || t_secs > 2073600) {
|
||||
g_printerr("%s: %s\n",
|
||||
argv[0],
|
||||
_("Invalid option. Please use --help to see a list of valid options."));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue