1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

Fixed display bug with DCC file size when > 1 Gb

This commit is contained in:
Sebastien Helleu
2006-05-07 16:21:42 +00:00
parent 86c2fb3031
commit 057cffe9f0
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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;