[Bug 642985] Review Request: rubygem-timecop - Provides a unified method to mock Time.now, Date.today in a single call

bugzilla at redhat.com bugzilla at redhat.com
Thu Oct 21 10:58:27 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=642985

--- Comment #3 from Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> 2010-10-21 06:58:26 EDT ---
By the way for bug 640608:

It seems that
$ ruby -e 'otime = Time.now ; sleep(1) ; ctime=Time.now ; puts ctime - otime'
will call system calls: gettimeofday -> select -> gettimeofday.

However it seems that select() sometimes sleeps less time than
requested:
http://lkml.org/lkml/2008/8/29/232
... which seems fixed in kernel 2.6.28. So RHEL5 host may suffer from
this issue? (and perl seems to be using nanosleep instead of select)

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list