=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/main.c,v retrieving revision 1.127 retrieving revision 1.128 diff -u -r1.127 -r1.128 --- src/usr.bin/ftp/main.c 2019/05/15 11:53:22 1.127 +++ src/usr.bin/ftp/main.c 2019/05/15 13:42:40 1.128 @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.127 2019/05/15 11:53:22 kmos Exp $ */ +/* $OpenBSD: main.c,v 1.128 2019/05/15 13:42:40 florian Exp $ */ /* * Copyright (c) 2015 Sunil Nimmagadda @@ -336,14 +336,16 @@ } else if ((dst_fp = fdopen(fd, "w")) == NULL) err(1, "%s: fdopen", __func__); + init_stats(sz, &offset); if (progressmeter) { p = basename(url->path); - start_progress_meter(p, title, sz, &offset); + start_progress_meter(p, title); } url_save(url, dst_fp, &offset); if (progressmeter) stop_progress_meter(); + finish_stats(); if (!tostdout) fclose(dst_fp);