From 6864b1d621a43905aaf0e84b8f95a1424ad1eaf8 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 7 Oct 2007 11:06:37 +0000 Subject: [PATCH] Minor changes with waiting for drive and fifo status display --- test/libburner.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/libburner.c b/test/libburner.c index b22761c..cc7769b 100644 --- a/test/libburner.c +++ b/test/libburner.c @@ -170,7 +170,7 @@ int libburner_aquire_by_driveno(int *driveno) printf("Beginning to scan for devices ...\n"); while (!burn_drive_scan(&drive_list, &drive_count)) - usleep(1002); + usleep(100002); if (drive_count <= 0 && *driveno >= 0) { printf("FAILED (no drives found)\n"); return 0; @@ -492,7 +492,7 @@ int libburner_payload(struct burn_drive *drive, burn_write_opts_free(burn_options); while (burn_drive_get_status(drive, NULL) == BURN_DRIVE_SPAWNING) - usleep(1002); + usleep(100002); while (burn_drive_get_status(drive, &progress) != BURN_DRIVE_IDLE) { if (progress.sectors <= 0 || (progress.sector >= progress.sectors - 1 && @@ -515,7 +515,7 @@ int libburner_payload(struct burn_drive *drive, ret = burn_fifo_inquire_status( fifo_src[progress.track], &size, &free_bytes, &status_text); - if (ret > 0 ) + if (ret >= 0 ) printf(" [fifo %s, %2d%% fill]", status_text, (int) (100.0 - 100.0 * ((double) free_bytes) /