diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-04-13 00:12:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-04-13 00:12:50 +0100 |
| commit | ed0b3ee0c5a0ba11d3a1a1dfee8e71238bcab4bd (patch) | |
| tree | 6c27b0adc932533794a4378ea53c1fca3154f97d /src/tools | |
| parent | 1d5ea1b139942bad5500ae40f0646da3fd29dc7f (diff) | |
Note and indicate servers with bad link version (#982).
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_cli.cc | 7 | ||||
| -rw-r--r-- | src/tools/server_test.cc | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc index 31681a7fc..52a113cbb 100644 --- a/src/tools/dcpomatic_cli.cc +++ b/src/tools/dcpomatic_cli.cc @@ -121,7 +121,7 @@ list_servers () { while (true) { int N = 0; - list<EncodeServerDescription> servers = EncodeServerFinder::instance()->servers (); + list<EncodeServerDescription> servers = EncodeServerFinder::instance()->good_servers (); /* This is a bit fiddly because we want to list configured servers that are down as well as all those (configured and found by broadcast) that are up. @@ -167,6 +167,11 @@ list_servers () cout << std::left << setw(24) << i.host_name() << " UP " << i.threads() << "\n"; ++N; } + + /* And those that have a bad version */ + BOOST_FOREACH (EncodeServerDescription i, EncodeServerFinder::instance()->good_servers()) { + cout << std::left << setw(24) << i.host_name() << " bad version\n"; + } } dcpomatic_sleep (1); diff --git a/src/tools/server_test.cc b/src/tools/server_test.cc index 3fa7ebb60..3d16038c1 100644 --- a/src/tools/server_test.cc +++ b/src/tools/server_test.cc @@ -142,7 +142,7 @@ main (int argc, char* argv[]) dcpomatic_setup (); try { - server = new EncodeServerDescription (server_host, 1); + server = new EncodeServerDescription (server_host, 1, SERVER_LINK_VERSION); film.reset (new Film (film_dir)); film->read_metadata (); |
