PR 53456 Fix typo in gf_cputime.
authorRobert Mason <rbmj@verizon.net>
Mon, 4 Jun 2012 19:13:49 +0000 (22:13 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Mon, 4 Jun 2012 19:13:49 +0000 (22:13 +0300)
2012-06-04  Robert Mason  <rbmj@verizon.net>
    Janne Blomqvist  <jb@gcc.gnu.org>

PR fortran/53456
* intrinsics/time_1.h (gf_cputime): Fix typo in clock_gettime branch.

From-SVN: r188201

libgfortran/ChangeLog
libgfortran/intrinsics/time_1.h

index fc464a153ff9ab78c2e002cde67521f598556b8c..3506636c4a974e090b59c036bed9535a9d432b38 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-04  Janne Blomqvist  <jb@gcc.gnu.org>
+
+       PR fortran/53456
+       * intrinsics/time_1.h (gf_cputime): Fix typo in clock_gettime branch.
+
 2012-06-01  Tobias Burnus  <burnus@net-b.de>
 
        * intrinsics/chmod.c (chmod_func): On MinGW, don't set is_dir and
index 98a20d2bb709bde127bf3207f5ea508d2fb65c31..920b175f79ae9d8fb232b1928f7c717e34d77cd8 100644 (file)
@@ -178,7 +178,7 @@ gf_cputime (long *user_sec, long *user_usec, long *system_sec, long *system_usec
   struct timespec ts;
   int err = clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &ts);
   *user_sec = ts.tv_sec;
-  *user_usecs = ts.tv_nsec / 1000;
+  *user_usec = ts.tv_nsec / 1000;
   *system_sec = *system_usec = 0;
   return err;