Wireshark mailing list archives
TCP Graphs and thousands separators ...
From: Richard Sharpe <realrichardsharpe () gmail com>
Date: Wed, 20 Jun 2012 21:22:08 -0700
Hi folks, I have noticed some complaining about the lack of thousands separators on the ticks, especially on the vertical axis. Certainly, I find it a pain. The following patch might fix the problem. I don't currently have a capture that I can check this with. Perhaps tomorrow I will remember to bring one how that shows more than three digits ... [rsharpe@localhost wireshark]$ svn diff ui/gtk/tcp_graph.c Index: ui/gtk/tcp_graph.c =================================================================== --- ui/gtk/tcp_graph.c (revision 43186) +++ ui/gtk/tcp_graph.c (working copy) @@ -2767,7 +2767,7 @@ break; y = y - floor (y); } - g_snprintf (str, sizeof(str), "%.*f", rdigits, label); + g_snprintf (str, sizeof(str), "%'*f", rdigits, label); switch (dir) { case AXIS_HORIZONTAL: layout = gtk_widget_create_pango_layout(axis->g->drawing_area, -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操) ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- TCP Graphs and thousands separators ... Richard Sharpe (Jun 20)
- Re: TCP Graphs and thousands separators ... Richard Sharpe (Jun 20)
- Re: TCP Graphs and thousands separators ... Jeff Morriss (Jun 21)
- Re: TCP Graphs and thousands separators ... Richard Sharpe (Jun 21)
- Re: TCP Graphs and thousands separators ... Jeff Morriss (Jun 21)
- Re: TCP Graphs and thousands separators ... Richard Sharpe (Jun 20)