Browse Source

!5793 Alarm modification

Merge pull request !5793 from shenwei41/sw_master
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
f0c07bbcdb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mindspore/ccsrc/minddata/dataset/core/config_manager.cc

+ 2
- 2
mindspore/ccsrc/minddata/dataset/core/config_manager.cc View File

@@ -36,10 +36,10 @@ ConfigManager::ConfigManager()
cache_port_(kCfgDefaultCachePort) {
auto env_cache_host = std::getenv("MS_CACHE_HOST");
auto env_cache_port = std::getenv("MS_CACHE_PORT");
if (env_cache_host) {
if (env_cache_host != nullptr) {
cache_host_ = env_cache_host;
}
if (env_cache_port) {
if (env_cache_port != nullptr) {
char *end = nullptr;
cache_port_ = strtol(env_cache_port, &end, 10);
if (*end != '\0') {


Loading…
Cancel
Save