ESC-210 Non-active regions were getting extra duration time.

Metrics were crediting inactive regions (those not current but
contributing to the sample) with additional time at the end of
the sample interval.  Corrected.
master
Monty Brandenberg 2010-12-03 18:34:20 -05:00
parent ca76c55847
commit a59c43f1ad
1 changed files with 2 additions and 2 deletions

View File

@ -240,8 +240,9 @@ LLViewerAssetStats::asLLSD()
static const LLSD::String rmean_tag("resp_mean");
const duration_t now = LLViewerAssetStatsFF::get_timestamp();
LLSD regions = LLSD::emptyMap();
mCurRegionStats->accumulateTime(now);
LLSD regions = LLSD::emptyMap();
for (PerRegionContainer::iterator it = mRegionStats.begin();
mRegionStats.end() != it;
++it)
@ -253,7 +254,6 @@ LLViewerAssetStats::asLLSD()
}
PerRegionStats & stats = *it->second;
stats.accumulateTime(now);
LLSD reg_stat = LLSD::emptyMap();