diff options
author | Fernando Fernandez Mancera <ffmancera@riseup.net> | 2022-02-25 12:32:43 +0100 |
---|---|---|
committer | Fernando Fernandez Mancera <ffmancera@riseup.net> | 2022-03-07 14:45:37 +0100 |
commit | 6feff72857bc0123130d6e18872358db2be2fee0 (patch) | |
tree | 6bc7e5e67b171864d4f82cbc3c54d85dde1e73e7 | |
parent | 12f03636d035572d7370b73756a38c76aa48b378 (diff) | |
download | NetworkManager-ff/nm-online-timeout.tar.gz |
nm-online: set the timeout upper limit to 2073600 secondsff/nm-online-timeout
In some situations 3600 seconds is not enough. The upper limit should be
2073600 seconds, 24 days. In addition, this limit should be documented.
-rw-r--r-- | src/nm-online/nm-online.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nm-online/nm-online.c b/src/nm-online/nm-online.c index 340c2d1955..ee4477db52 100644 --- a/src/nm-online/nm-online.c +++ b/src/nm-online/nm-online.c @@ -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.")); |