Mercurial > gftp.yaz
comparison src/gtk/transfer.c @ 14:83090328581e
* More largefile support. Hopefully all that is left is the configure stuff
* Sanity checking on the fdopen() calls. Also make sure that all of them have a + in their open mode. Doesn't affect UNIX, but it does affect Windows
* HTTP fixes when running under Solaris. Read from request->sockfd and write to request->sockfd_write (Solaris doesn't like it when you read/write to the same FILE structure)
* Display major/minor properly for a device when connected with the local protocol
author | masneyb |
---|---|
date | Wed, 04 Sep 2002 11:45:56 +0000 |
parents | 5551ab2301fe |
children | 3b2dcdefc7e9 |
comparison
equal
deleted
inserted
replaced
13:cd2e26a69461 | 14:83090328581e |
---|---|
1240 pcent = (int) ((double) (tdata->trans_bytes + tdata->resumed_bytes) / (double) tdata->total_bytes * 100.0); | 1240 pcent = (int) ((double) (tdata->trans_bytes + tdata->resumed_bytes) / (double) tdata->total_bytes * 100.0); |
1241 if (pcent < 0 || pcent > 100) | 1241 if (pcent < 0 || pcent > 100) |
1242 pcent = 0; | 1242 pcent = 0; |
1243 | 1243 |
1244 g_snprintf (totstr, sizeof (totstr), | 1244 g_snprintf (totstr, sizeof (totstr), |
1245 _("%d%% complete, %02d:%02d:%02d est. time remaining. (File %d of %ld)"), | 1245 _("%d%% complete, %02d:%02d:%02d est. time remaining. (File %ld of %ld)"), |
1246 pcent, hours, mins, secs, tdata->current_file_number, | 1246 pcent, hours, mins, secs, tdata->current_file_number, |
1247 tdata->numdirs + tdata->numfiles); | 1247 tdata->numdirs + tdata->numfiles); |
1248 | 1248 |
1249 *dlstr = '\0'; | 1249 *dlstr = '\0'; |
1250 if (!tdata->stalled) | 1250 if (!tdata->stalled) |