sts.c
changeset 145 63a5269fb113
parent 144 f064cd793f8d
child 156 2898369b1cdc
--- a/sts.c
+++ b/sts.c
@@ -6,7 +6,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <math.h>
 #include <time.h>
 #include <errno.h>
 
@@ -20,15 +19,13 @@
 {
     time_t sec = 0;
     time_t milli = 0;
-    double value;
 
     if (sscanf (buf, "%ld.%ld", &sec, &milli) != 2) {
         fprintf (stderr, "  sec: %ld, ", sec);
         fprintf (stderr, "milli: %ld\n", milli);
     }
 
-    value = (milli / 1000000);
-    return sec + (time_t) (floor (value));
+    return sec;
 }
 
 time_t getboottime ()