X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/92fb929a296f08ae5907940baaee7a02db14dc8f..f7aa4b367eaf2c1e928f97263bcf4da74680aff3:/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 {