summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-05-07 16:21:42 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-05-07 16:21:42 +0000
commit057cffe9f0f8a92ad99117337fddfcaf65c085af (patch)
treef679c31d59372cc372d9242ae4c6d78a0e9c6453 /src
parent86c2fb3031842ea612635fd6970fbd5bcf654ab3 (diff)
downloadweechat-057cffe9f0f8a92ad99117337fddfcaf65c085af.zip
Fixed display bug with DCC file size when > 1 Gb
Diffstat (limited to 'src')
-rw-r--r--src/gui/curses/gui-curses-chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c
index 8493a4c1c..45f73bfc8 100644
--- a/src/gui/curses/gui-curses-chat.c
+++ b/src/gui/curses/gui-curses-chat.c
@@ -859,7 +859,7 @@ gui_chat_draw (t_gui_buffer *buffer, int erase)
int i, j, line_pos, count, num_bars;
char *unit_name[] = { N_("bytes"), N_("Kb"), N_("Mb"), N_("Gb") };
char *unit_format[] = { "%.0Lf", "%.1Lf", "%.02Lf", "%.02Lf" };
- long unit_divide[] = { 1, 1024, 1024*1024, 1024*1024,1024 };
+ long unit_divide[] = { 1, 1024, 1024*1024, 1024*1024*1024 };
int num_unit;
char format[32], date[128], *buf;
struct tm *date_tmp;