]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 24 Aug 2019 14:24:28 +0000 (10:24 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 24 Aug 2019 14:24:46 +0000 (10:24 -0400)
MagickCore/log.c

index 5977189278a447a7fe74657d8408213fcdaa3ddb..d71f6d1f44b0f5c31969503beb2a14110d71fa64 100644 (file)
@@ -993,7 +993,7 @@ static char *TranslateEvent(const char *module,const char *function,
       (void) FormatLocaleString(text,extent,
         "<entry>\n"
         "  <timestamp>%s</timestamp>\n"
-        "  <elapsed-time>%lu:%02lu.%03lu</elapsed-time>\n"
+        "  <elapsed-time>%lu:%02lu.%06lu</elapsed-time>\n"
         "  <user-time>%0.3f</user-time>\n"
         "  <process-id>%.20g</process-id>\n"
         "  <thread-id>%.20g</thread-id>\n"
@@ -1004,7 +1004,7 @@ static char *TranslateEvent(const char *module,const char *function,
         "  <event>%s</event>\n"
         "</entry>",timestamp,(unsigned long) (elapsed_time/60.0),
         (unsigned long) floor(fmod(elapsed_time,60.0)),(unsigned long)
-        (1000.0*(elapsed_time-floor(elapsed_time))+0.5),user_time,
+        (1000000.0*(elapsed_time-floor(elapsed_time))+0.5),user_time,
         (double) getpid(),(double) GetMagickThreadSignature(),module,function,
         (double) line,domain,event);
       return(text);