Pro version equivalent of recent free version changes.
This commit is contained in:
parent
d8051984f2
commit
c8d1c2006e
6 changed files with 6 additions and 6 deletions
|
@ -203,7 +203,7 @@ namespace Analysers {
|
|||
|
||||
|
||||
int main(int argc, char ** argv){
|
||||
Util::Config conf = Util::Config(argv[0], PACKAGE_VERSION);
|
||||
Util::Config conf = Util::Config(argv[0]);
|
||||
conf.parseArgs(argc, argv);
|
||||
return Analysers::analyseRTP();
|
||||
}
|
||||
|
|
|
@ -190,7 +190,7 @@ namespace RtspRtp{
|
|||
|
||||
|
||||
int main(int argc, char ** argv){
|
||||
Util::Config conf = Util::Config(argv[0], PACKAGE_VERSION);
|
||||
Util::Config conf = Util::Config(argv[0]);
|
||||
conf.addOption("url",JSON::fromString("{\"arg\":\"string\",\"short\":\"u\",\"long\":\"url\",\"help\":\"URL To get.\", \"default\":\"rtsp://localhost/s1k\"}"));
|
||||
conf.parseArgs(argc, argv);
|
||||
return RtspRtp::analyseRtspRtp(conf.getString("url"));
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
/// Will emulate a given amount of clients in the statistics.
|
||||
int main(int argc, char ** argv){
|
||||
Util::Config conf = Util::Config(argv[0], PACKAGE_VERSION);
|
||||
Util::Config conf = Util::Config(argv[0]);
|
||||
conf.addOption("clients", JSON::fromString("{\"arg\":\"num\", \"short\":\"c\", \"long\":\"clients\", \"default\":1000, \"help\":\"Amount of clients to emulate.\"}"));
|
||||
conf.addOption("stream", JSON::fromString("{\"arg\":\"string\", \"short\":\"s\", \"long\":\"stream\", \"default\":\"test\", \"help\":\"Streamname to pretend to request.\"}"));
|
||||
conf.addOption("up", JSON::fromString("{\"arg\":\"string\", \"short\":\"u\", \"long\":\"up\", \"default\":131072, \"help\":\"Bytes per second upstream.\"}"));
|
||||
|
|
|
@ -92,7 +92,7 @@ namespace Controller {
|
|||
http.url = "/getsums.php?verinfo=1&rel=" RELEASE "&pass=" SHARED_SECRET "&uniqId=" + uniqId;
|
||||
http.method = "GET";
|
||||
http.SetHeader("Host", "releases.mistserver.org");
|
||||
http.SetHeader("X-Version", PACKAGE_VERSION "/" + Util::Config::libver + "/" RELEASE);
|
||||
http.SetHeader("X-Version", PACKAGE_VERSION);
|
||||
updrConn.SendNow(http.BuildRequest());
|
||||
http.Clean();
|
||||
unsigned int startTime = Util::epoch();
|
||||
|
|
|
@ -120,7 +120,7 @@ void Controller::uplinkConnection(void * np) {
|
|||
}
|
||||
data["config"] = Controller::Storage["config"];
|
||||
data["config"]["uniq"] = uniqId;
|
||||
data["config"]["version"] = PACKAGE_VERSION "/" + Util::Config::libver + "/" RELEASE;
|
||||
data["config"]["version"] = PACKAGE_VERSION;
|
||||
Controller::checkCapable(capabilities);
|
||||
data["capabilities"] = capabilities;
|
||||
data["capabilities"].removeMember("connectors");
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <mist/stream.h>
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
Util::Config conf(argv[0], PACKAGE_VERSION);
|
||||
Util::Config conf(argv[0]);
|
||||
mistIn conv(&conf);
|
||||
if (conf.parseArgs(argc, argv)) {
|
||||
if (conf.getBool("json")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue