| From: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
|---|---|
| To: | "PostgreSQL-patches" <pgsql-patches(at)postgresql(dot)org> |
| Subject: | getrusage on win32 |
| Date: | 2004-09-02 17:48:32 |
| Message-ID: | 6BCB9D8A16AC4241919521715F4D8BCE475BB1@algol.sollentuna.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
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
| Attachment | Content-Type | Size |
|---|---|---|
| rusage_win32.patch | application/octet-stream | 1.8 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2004-09-02 17:55:37 | Re: getrusage on win32 |
| Previous Message | Tom Lane | 2004-09-02 16:10:09 | Re: pgxs default installation + various fixes |