bug-bash
[Top][All Lists]
Advanced

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

[BUG] timeval_to_secs(), and a [PATCH]


From: Pourko
Subject: [BUG] timeval_to_secs(), and a [PATCH]
Date: Mon, 29 Sep 2025 08:25:35 +0200 (CEST)

Function timeval_to_secs() takes as the last argument the unit-scale in which
you want the fractional part returned to be in. When you call this function to
get your fractional part in centiseconds or in milliseconds, all is good. But
if you ask it to be in nanoseconds, then the number returned is just wrong.

Attached is the patch that fixes that.

Patch (apply with `patch -p0'):

Attachment: timeval.c.patch.txt
Description: Text document


reply via email to

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