joyent/libuv — pull request #662 by tfeb (2012-12-21 09:25:26+00:00)
Title: linux-core.c: return time values in ticks, not seconds

(still less the bogus values that were being returned previously)

CPU time fields were being spuriously multiplied by the ticks/second value resulting in insane values on Linux. This patch changes that so they're just returned as raw ticks.

Since node.js offers no way to get the ticks/second value this is still not very useful but it does mean the values actually correspond to what the OS thinks.

In an ideal world I think it would be better to either provide an interface to getting the ticks/second value from the OS, or to return CPU times in seconds. Both of those would be fairly easy changes I think: probably the former is better as it does not change things incompatibly (though I assume no one has being relying on the existing values!)