You are not logged in.
Pages: 1
I just have a simple question about configuring my reflector.conf file. Is it possible to have Reflector sort by multiple parameters simultaneously? In particular, I would like it to sort by age first, then by rate. If I set --sort to say
--sort 'age,rate'will this do what I want?
If so, what is the correct syntax? The man page shows braces, but I'm not sure if those are just placeholders used in the man page to show all of the possible options, or if they are used as delimiters in the actual configuration file to contain all of the options that can be placed within the braces. Should I use braces, single quotes, or can I just use comma-separated values in the configuration file, and can I use more than one sort option at the same time?
Thanks in advance for the help.
Offline
Even if it's possible (which I don't think it is), it's not practical. Mirrors will always have age differences meaning that the rate comparison would never occur even with microsecond age differences (they're more in real life, but theoretically).
Offline
You can do this with speculum, which you can find in the AUR. It was one if the reasons I developed it.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Even if it's possible (which I don't think it is), it's not practical. Mirrors will always have age differences meaning that the rate comparison would never occur even with microsecond age differences (they're more in real life, but theoretically).
I was hoping perhaps it would sort them by age first to give me the most recently updated mirrors, then from those mirrors select the ones with the fastest download rates. But if this isn't possible, I'll just have it sort by age. I'd rather have the newest mirrors than save a couple of seconds on downloads.
Offline
You can do this with speculum, which you can find in the AUR. It was one if the reasons I developed it.
I'll check it out and see how it works. If I like it, I'll give it a vote. Thanks for the recommendation!
Offline
I was hoping perhaps it would sort them by age first to give me the most recently updated mirrors, then from those mirrors...
Sorting doesn't restrict the set of mirrors in any way - it only sorts them! If you sort by age, then sort again by rate, you'll have completely undone the age sorting.
When you say you want only the "most recently" updated mirrors, how recent is recent enough? Or how many most recent? Sorting can't give you this subset, filtering does. So you filter for age then only sort by rate.
Last edited by Trilby (2024-05-26 21:06:50)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Pages: 1