Add an error check to every setsockopt call in uxnet.c.
[sgt/putty] / unix / uxmisc.c
index 01e1299..300fc54 100644 (file)
@@ -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
     {