From 3f3e503221fa6faf6154ec36693a0f918d97b68d Mon Sep 17 00:00:00 2001 From: IGP Date: Thu, 6 Oct 2016 06:24:17 -0400 Subject: [PATCH] Update volume.c - more iters with less sleeping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 250000μs to 100000μs --- src/volume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/volume.c b/src/volume.c index e1b2bb6..433762a 100644 --- a/src/volume.c +++ b/src/volume.c @@ -80,7 +80,7 @@ static t_pusb_volume *pusb_volume_probe(t_pusb_options *opts, UDisksClient *udisks) { t_pusb_volume *volume = NULL; - int maxtries = (opts->probe_timeout * 1000000) / 250000; + int maxtries = (opts->probe_timeout * 1000000) / 100000; int i; int j; GList *blocks = NULL; @@ -134,7 +134,7 @@ static t_pusb_volume *pusb_volume_probe(t_pusb_options *opts, break; } - usleep(250000); + usleep(100000); g_main_context_iteration(NULL, FALSE); }