X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/92fb929a296f08ae5907940baaee7a02db14dc8f..e497389e51d4c6b50e01fb2e30af9c5a8caf9a65:/unix/uxmisc.c diff --git a/unix/uxmisc.c b/unix/uxmisc.c index 01e1299d..300fc543 100644 --- a/unix/uxmisc.c +++ b/unix/uxmisc.c @@ -29,7 +29,7 @@ unsigned long getticks(void) struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) return ts.tv_sec * TICKSPERSEC + - ts.tv_nsec / (1000000 / TICKSPERSEC); + ts.tv_nsec / (1000000000 / TICKSPERSEC); } #endif {