[gnome-todo] log: Limit ms to 4 digits



commit 729099b62eccaf833a7e847e4047b3c7fa8b7faa
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Feb 20 00:25:14 2020 -0300

    log: Limit ms to 4 digits

 src/logging/gtd-log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/logging/gtd-log.c b/src/logging/gtd-log.c
index 8a154e6..fc2645d 100644
--- a/src/logging/gtd-log.c
+++ b/src/logging/gtd-log.c
@@ -70,7 +70,7 @@ gtd_log_handler (const gchar    *domain,
   now = g_date_time_new_now_local ();
   ftime = g_date_time_format (now, "%H:%M:%S");
   microsecond = g_date_time_get_microsecond (now);
-  buffer = g_strdup_printf ("%s.%04d  %28s: %s: %s\n",
+  buffer = g_strdup_printf ("%s.%4.4d  %28s: %s: %s\n",
                             ftime,
                             microsecond,
                             domain,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]