[Commits] main.c 1.115.2.250 1.115.2.251
wwp at claws-mail.org
wwp at claws-mail.org
Fri Jul 6 11:19:46 CEST 2012
Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv30800/src
Modified Files:
Tag: gtk2
main.c
Log Message:
2012-07-06 [wwp] 3.8.1cvs6
* src/main.c
* src/gtk/about.c
Session statistics: format date following global prefs,
and fix stats output a little bit.
Index: main.c
===================================================================
RCS file: /home/claws-mail/claws/src/main.c,v
retrieving revision 1.115.2.250
retrieving revision 1.115.2.251
diff -u -d -r1.115.2.250 -r1.115.2.251
--- main.c 2 Jun 2012 09:06:27 -0000 1.115.2.250
+++ main.c 6 Jul 2012 09:19:44 -0000 1.115.2.251
@@ -2573,10 +2573,22 @@
g_snprintf(tmp, sizeof(tmp), _("Session statistics\n"));
fd_write_all(sock, tmp, strlen(tmp));
- g_snprintf(tmp, sizeof(tmp), _("Started: %s\n"),
- ctime(&session_stats.time_started));
+ if (prefs_common.date_format) {
+ struct tm *lt;
+ gint len = 100;
+ gchar date[len];
+
+ lt = localtime(&session_stats.time_started);
+ fast_strftime(date, len, prefs_common.date_format, lt);
+ g_snprintf(tmp, sizeof(tmp), _("Started: %s\n"),
+ lt ? date : ctime(&session_stats.time_started));
+ } else
+ g_snprintf(tmp, sizeof(tmp), _("Started: %s\n"),
+ ctime(&session_stats.time_started));
fd_write_all(sock, tmp, strlen(tmp));
+ fd_write_all(sock, "\n", 1);
+
g_snprintf(tmp, sizeof(tmp), _("Incoming traffic\n"));
fd_write_all(sock, tmp, strlen(tmp));
More information about the Commits
mailing list