Module Name: othersrc Committed By: agc Date: Mon May 7 03:37:00 UTC 2012
Update of /cvsroot/othersrc/external/bsd/progress In directory ivanova.netbsd.org:/tmp/cvs-serv218 Log Message: Break out the routines (from tnftp) to calculate and draw a progress bar. The code was originally written by Luke Mewburn - all mangling and bugs courtesy of agc. A quick (hypothetical) example of how to use this progress bar: progress_t prog; uint64_t total; uint64_t done; total = 15768554; progress_init(&prog, "test update bar", total); for (done = 0 ; done < total ; done += (total / 20) + ((random() % 20) * 1024)) { progress_draw(&prog, done); sleep(1); } progress_complete(&prog, done); Status: Vendor Tag: LUKEM Release Tags: progress-base N othersrc/external/bsd/progress/Makefile N othersrc/external/bsd/progress/dist/progress.c N othersrc/external/bsd/progress/dist/Makefile N othersrc/external/bsd/progress/dist/main.c N othersrc/external/bsd/progress/dist/libprogress.3 N othersrc/external/bsd/progress/dist/progress.h N othersrc/external/bsd/progress/lib/shlib_version N othersrc/external/bsd/progress/lib/Makefile N othersrc/external/bsd/progress/bin/Makefile No conflicts created by this import