Source
xxxxxxxxxx
--- fetch.c.orig 2011-11-11 05:20:22.000000000 +0100
+++ fetch.c 2007-09-08 23:13:26.000000000 +0200
@@ -33,6 +33,7 @@
+#include <sys/ioctl.h>
@@ -204,12 +204,16 @@
fprintf(stderr, "\r%-46.46s", xs->name);
if (xs->size <= 0) {
+#ifdef __FreeBSD__
setproctitle("%s [%s]", xs->name, stat_bytes(xs->rcvd));
+#endif
fprintf(stderr, " %s", stat_bytes(xs->rcvd));
} else {
+#ifdef __FreeBSD__
setproctitle("%s [%d%% of %s]", xs->name,
(int)((100.0 * xs->rcvd) / xs->size),
stat_bytes(xs->size));
+#endif
fprintf(stderr, "%3d%% of %s",
(int)((100.0 * xs->rcvd) / xs->size),
stat_bytes(xs->size));