This is an automated email from the git hooks/post-receive script. o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r in repository apps/xfce4-notifyd.
commit c9e81d715218b4113764f78d0a1467f19f2d9c5b Author: Simon Steinbeiss <simon.steinbe...@elfenbeinturm.at> Date: Sun Mar 1 23:35:52 2020 +0100 Fix logging simultaneous notifications (Bug #15167) Previously the group name was not specific enough, so notifications being sent at the same second would overwrite each other in the logfile. --- common/xfce-notify-log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/xfce-notify-log.c b/common/xfce-notify-log.c index 5c0323c..00e7918 100644 --- a/common/xfce-notify-log.c +++ b/common/xfce-notify-log.c @@ -145,6 +145,7 @@ void xfce_notify_log_insert (const gchar *app_name, gint j = 0; GDateTime *now; gchar *timestamp; + gint microseconds; GBytes *image_bytes; gchar *icon_name; GdkPixbuf *pixbuf = NULL; @@ -166,8 +167,9 @@ void xfce_notify_log_insert (const gchar *app_name, now = g_date_time_new_now_local (); timestamp = g_date_time_format (now, "%FT%T"); + microseconds = g_date_time_get_microsecond (now); g_date_time_unref (now); - group = g_strdup_printf ("%s", timestamp); + group = g_strdup_printf ("%s.%d", timestamp, microseconds); g_free(timestamp); g_key_file_set_string (notify_log, group, "app_name", app_name); -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits