gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Revised adaptive-delay code - please test


From: Gary E. Miller
Subject: Re: [gpsd-dev] Revised adaptive-delay code - please test
Date: Wed, 28 Jan 2015 13:51:50 -0800

Yo Eric!

On Wed, 28 Jan 2015 16:37:48 -0500
"Eric S. Raymond" <address@hidden> wrote:

> My Ubuntu doesn't have a usleep command.  Can you identify the
> package or bash version that supports this?

Most 'sleep' commands take a floating point number.

So just convert this:
        usleep ${DELAY}00  # 0-3 seconds

To this:
        sleep  `echo "scale=6; $DELAY / 1000000" | bc`

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588



reply via email to

[Prev in Thread] Current Thread [Next in Thread]