diff options
author | Ron Yorston <rmy@pobox.com> | 2018-04-10 20:28:39 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-04-10 20:28:39 +0100 |
commit | 942f872781630147d3f05e08ee3998679e7e892e (patch) | |
tree | 4c479194fbb4adc54b98d55435ae4b9866766f59 | |
parent | 5cb004ad7c8fdacb30dbec5ff5398ad5f6d02cf7 (diff) | |
download | busybox-w32-942f872781630147d3f05e08ee3998679e7e892e.tar.gz busybox-w32-942f872781630147d3f05e08ee3998679e7e892e.tar.bz2 busybox-w32-942f872781630147d3f05e08ee3998679e7e892e.zip |
win32: remove some code from procps_scan
Now that we're calling memset to clear data for each process it's
no longer necessary to zero the process times by hand.
-rw-r--r-- | win32/process.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/win32/process.c b/win32/process.c index b9168ba1d..9acc66f81 100644 --- a/win32/process.c +++ b/win32/process.c | |||
@@ -540,9 +540,6 @@ UNUSED_PARAM | |||
540 | sp->stime = (unsigned long)filetime_to_ticks(&keTime); | 540 | sp->stime = (unsigned long)filetime_to_ticks(&keTime); |
541 | sp->utime = (unsigned long)filetime_to_ticks(&usTime); | 541 | sp->utime = (unsigned long)filetime_to_ticks(&usTime); |
542 | } | 542 | } |
543 | else { | ||
544 | sp->start_time = sp->stime = sp->utime = 0; | ||
545 | } | ||
546 | CloseHandle(proc); | 543 | CloseHandle(proc); |
547 | } | 544 | } |
548 | } | 545 | } |