[gnome-software: 3/9] debug: Print milliseconds with 3 digits




commit 20402e0897adf33695a6e12d8bc9d43b6a93568b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Aug 18 15:32:30 2022 -0300

    debug: Print milliseconds with 3 digits
    
    It only goes up to 999!

 lib/gs-debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-debug.c b/lib/gs-debug.c
index 1b2da0c2b..f76788af4 100644
--- a/lib/gs-debug.c
+++ b/lib/gs-debug.c
@@ -82,7 +82,7 @@ gs_log_writer_console (GLogLevelFlags log_level,
        /* time header */
        if (debug->use_time) {
                g_autoptr(GDateTime) dt = g_date_time_new_now_utc ();
-               tmp = g_strdup_printf ("%02i:%02i:%02i:%04i",
+               tmp = g_strdup_printf ("%02i:%02i:%02i:%03i",
                                       g_date_time_get_hour (dt),
                                       g_date_time_get_minute (dt),
                                       g_date_time_get_second (dt),


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