summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/MetricsAdminI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-08-10 08:59:58 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-08-10 08:59:58 +0200
commit3a2c0aabc66ff393a038c639fc2aa094f277ec5b (patch)
tree388766e52a16203e00572c235f062a3a4c28d7f1 /cpp/src/Ice/MetricsAdminI.cpp
parentMore fixes (diff)
downloadice-3a2c0aabc66ff393a038c639fc2aa094f277ec5b.tar.bz2
ice-3a2c0aabc66ff393a038c639fc2aa094f277ec5b.tar.xz
ice-3a2c0aabc66ff393a038c639fc2aa094f277ec5b.zip
Fixes
Diffstat (limited to 'cpp/src/Ice/MetricsAdminI.cpp')
-rw-r--r--cpp/src/Ice/MetricsAdminI.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Ice/MetricsAdminI.cpp b/cpp/src/Ice/MetricsAdminI.cpp
index ed7f5aa9049..16bc951e648 100644
--- a/cpp/src/Ice/MetricsAdminI.cpp
+++ b/cpp/src/Ice/MetricsAdminI.cpp
@@ -293,7 +293,7 @@ MetricsAdminI::addFactory(const string& mapName, const MetricsMapFactoryPtr& fac
//
// Add maps to views configured with the given map.
//
- const string viewsPrefix = "IceMX.MetricsView.";
+ const string viewsPrefix = "IceMX.Metrics.";
PropertyDict views = _properties->getPropertiesForPrefix(viewsPrefix);
for(PropertyDict::const_iterator p = views.begin(); p != views.end(); ++p)
{
@@ -307,14 +307,14 @@ MetricsAdminI::addFactory(const string& mapName, const MetricsMapFactoryPtr& fac
map<string, MetricsViewIPtr>::const_iterator q = _views.find(viewName);
if(q == _views.end())
{
- bool enabled = _properties->getPropertyAsIntWithDefault(viewsPrefix + viewName, 1) > 0;
- q = _views.insert(make_pair(viewName, new MetricsViewI(enabled))).first;
+ bool disabled = _properties->getPropertyAsIntWithDefault(viewsPrefix + viewName + ".Disabled", 0) > 0;
+ q = _views.insert(make_pair(viewName, new MetricsViewI(disabled))).first;
}
MetricsViewIPtr view = q->second;
const string mapsPrefix = viewsPrefix + viewName + ".Map.";
string mapPrefix = mapsPrefix + mapName;
- if(_properties->getPropertyAsInt(mapPrefix) == 0 || _properties->getPropertiesForPrefix(mapPrefix).empty())
+ if(_properties->getPropertiesForPrefix(mapPrefix).empty())
{
if(_properties->getPropertiesForPrefix(mapsPrefix).empty())
{