[PATCH 0/2] default ps -W process start time to boot time when unavailable

Brian Inglis Brian.Inglis@SystematicSw.ab.ca
Mon Mar 25 19:02:00 GMT 2019


On 2019-03-25 04:27, Corinna Vinschen wrote:
> On Mar 23 20:22, Brian Inglis wrote:
>> non-elevated users can not access system startup process start times,
>> defaulting to time_t 0, displaying as Dec 31/Jan 1 depending on time zone,
>> so instead use system boot time, which is within seconds of correct,
>> to avoid WMI overhead getting correct system startup process start time
>> Brian Inglis (2):
>>   default ps -W process start time to system boot time when inaccessible, 0, -1
>>   get and convert boot time once and use as needed
>>  winsup/utils/ps.cc | 20 +++++++++++++++++++-
>>  1 file changed, 19 insertions(+), 1 deletion(-)
>> -- 
>> 2.17.0
> Pushed.

Ta, Cheers!

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.



More information about the Cygwin-patches mailing list