Re: [PATCH 1/2] core: add nm_utils_monotonic_timestamp_as_boottime() function



On Tue, 2015-04-21 at 19:04 +0200, Thomas Haller wrote:
On Tue, 2015-04-21 at 11:48 -0400, Mathieu Trudel-Lapierre wrote:
From: Thomas Haller <thaller redhat com>


I pushed both patches to upstream branch mtl/wifi-ap-last-seen for
easier review.

And I added two fixup commits with changes I that I suggest.


Thomas


maybe it would be better to expose the timestamp as singed int in libnm
so that we can signal "unseen" by setting -1. G_MAXUINT32 is not very
intuitive.

A gint32 is still large enough, unless you run your machine without
reboot for 68+ years.

There isn't a Year 2038 problem, because the counter starts at last
boot, not in 1970.


Thomas

Attachment: signature.asc
Description: This is a digitally signed message part



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