getrusage on win32

Поиск
Список
Период
Сортировка
Искать

getrusage on win32

От:
"Magnus Hagander" <mha@sollentuna.net>
Дата:
Вложения:
Here is a fix for getrusage on win32. This fixes the bad timing output
from vacuum verbose.

The reason for the really weird numbers before was that the memset()
used to clear out the structure used sizeof(rusage) instead of
sizeof(struct rusage). That said, the old version didn't actually return
anything other than 0 by design. This version checks the actual times...

//Magnus

Re: getrusage on win32

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Magnus Hagander"  writes:
> Here is a fix for getrusage on win32. This fixes the bad timing output
> from vacuum verbose.

Applied.

			regards, tom lane
FAQ