Commit Graph

3 Commits

Author SHA1 Message Date
Dan McGee
b8a78408ff Small updates to mirrorcheck command
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 17:29:45 -05:00
Dan McGee
1f44788e1e Add debugger when having to parse lastsync file
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 09:10:33 -05:00
Dan McGee
3d8bc07622 Add 'mirrorcheck' command
This does the actual work of going out and checking the mirror status. In
short, it polls every active mirror URL for the 'lastsync' file and then
records the appropriate details. These include the contents of that file,
how long the total time to retrieve took, and any errors encountered.

In order to finish up a bit faster, we spawn several threads to do the
actual work. This parallelization allows the whole check process to take
around 30 seconds rather than several minutes.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 09:10:33 -05:00