From b82206974e2b75d9add23f97f13d04297ae338ed Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Thu, 10 May 2007 01:18:10 +0000 Subject: make sure microseconds get the right number of decimal places (bzr r2988) --- src/debug/timestamp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug/timestamp.cpp') diff --git a/src/debug/timestamp.cpp b/src/debug/timestamp.cpp index 75447ff35..1c6269756 100644 --- a/src/debug/timestamp.cpp +++ b/src/debug/timestamp.cpp @@ -23,7 +23,7 @@ Util::ptr_shared timestamp() { Util::ptr_shared result; GTimeVal timestamp; g_get_current_time(×tamp); - gchar *value = g_strdup_printf("%d.%d", timestamp.tv_sec, timestamp.tv_usec); + gchar *value = g_strdup_printf("%d.%06d", timestamp.tv_sec, timestamp.tv_usec); result = Util::share_string(value); g_free(value); return result; -- cgit v1.2.3