mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 09:50:09 +01:00
Default to 30, not 60, seconds.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1709 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
1558cd6be3
commit
fc4797caaf
2 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
* tests/nm-online.c: New file. Simple utility that returns exit status
|
||||
noting whether the connection is offline or online. If offline on
|
||||
start, it waits 60 seconds (or a command-line given value) for an
|
||||
start, it waits 30 seconds (or a command-line given value) for an
|
||||
online signal. If it times out, it again returns offline. This is
|
||||
useful for scripts that want to wait for network connections.
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ int main (int argc, char *argv[])
|
|||
DBusConnection *connection;
|
||||
DBusError error;
|
||||
GMainLoop *loop;
|
||||
int timeout = 60;
|
||||
int timeout = 30;
|
||||
|
||||
if (argc == 2) {
|
||||
timeout = (int) strtol (argv[1], NULL, 10);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue