1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

rename network_device_index to network

This commit is contained in:
winlin 2014-07-27 18:40:32 +08:00
parent f4ea48adcb
commit 6f700f3f40
3 changed files with 6 additions and 6 deletions

View file

@ -1249,7 +1249,7 @@ int SrsConfig::check_config()
SrsConfDirective* conf = get_stats();
for (int i = 0; conf && i < (int)conf->directives.size(); i++) {
string n = conf->at(i)->name;
if (n != "network" && n != "disk_device_name") {
if (n != "network" && n != "disk") {
ret = ERROR_SYSTEM_CONFIG_INVALID;
srs_error("unsupported stats directive %s, ret=%d", n.c_str(), ret);
return ret;
@ -3202,7 +3202,7 @@ SrsConfDirective* SrsConfig::get_stats_disk_device()
return NULL;
}
conf = conf->get("disk_device_name");
conf = conf->get("disk");
if (!conf || conf->args.size() == 0) {
return NULL;
}