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:
Robert Love 2006-04-26 19:43:53 +00:00
parent 1558cd6be3
commit fc4797caaf
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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);