public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: kerolasa@gmail.com
Cc: Alexander Samilovskih <alexsamilovskih@gmail.com>,
	util-linux <util-linux@vger.kernel.org>
Subject: Re: Problem with gettimeofday
Date: Tue, 18 Nov 2014 14:43:50 +0100	[thread overview]
Message-ID: <20141118134350.GO6704@x2.net.home> (raw)
In-Reply-To: <CAG27Bk2mYN7BoMcMfJEm=1KLat1zERNnvd2zV01deik-PBk_Hw@mail.gmail.com>

On Fri, May 02, 2014 at 09:26:02AM +0100, Sami Kerola wrote:
> On 2 May 2014 03:52, Alexander Samilovskih <alexsamilovskih@gmail.com> wrote:
> > There are several places where gettimeofday should be replaced by
> > clock_gettime(CLOCK_MONOTONIC_RAW). According to manual pages
> > gettimeofday affected by discontinues jumps made by system
> > administrator, can be slewed by ntpd or kinda stuff. So when we
> > subtract two different timestamps from gettimeofday we can get
> > confusing results
> >
> > sys-utils/eject.c
> > libmount/lock.c
> > maybe some other places...
> 
> Hi Alexander,
> 
> The diff you sent does not seem to work.
> 
> fatal: corrupt patch at line 123
> 
> The format you get from
> 
> $ git format-patch HEAD~1
> 
> would be appreciated.

 It seems Alexander does not care anymore, so I have fixed and applied 
 the patch.

    Karel


-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

      parent reply	other threads:[~2014-11-18 13:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CALkMTNnMEujZy7H2tv+iUApHK+10b3Q3aNu4E+cxy=U-uE37ew@mail.gmail.com>
2014-05-02  2:52 ` Problem with gettimeofday Alexander Samilovskih
2014-05-02  8:26   ` Sami Kerola
2014-05-02 12:12     ` Alexander Samilovskih
2014-11-18 13:43     ` Karel Zak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141118134350.GO6704@x2.net.home \
    --to=kzak@redhat.com \
    --cc=alexsamilovskih@gmail.com \
    --cc=kerolasa@gmail.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox