summaryrefslogtreecommitdiff
path: root/lib/perf_check.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
commitfe9eb89ebc1b3c33cbac00a3fa095a14faef9113 (patch)
tree8a3bb620a9acb83fe0057061a86e8f2cb91a9fe1 /lib/perf_check.cpp
parent5.21 (diff)
downloadFreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.gz
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.bz2
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.zip
5.22
Diffstat (limited to 'lib/perf_check.cpp')
-rw-r--r--lib/perf_check.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/perf_check.cpp b/lib/perf_check.cpp
index 0f5506b3..bf232add 100644
--- a/lib/perf_check.cpp
+++ b/lib/perf_check.cpp
@@ -122,7 +122,7 @@ zen::Opt<std::wstring> PerfCheck::getItemsPerSecond() const
const int itemsDelta = itemBack.second.itemCount_ - itemFront.second.itemCount_;
if (timeDelta != 0)
- return replaceCpy(_("%x items"), L"%x", formatThreeDigitPrecision(itemsDelta * 1000.0 / timeDelta)) + _("/sec");
+ return replaceCpy(_("%x items/sec"), L"%x", formatThreeDigitPrecision(itemsDelta * 1000.0 / timeDelta));
}
return NoValue();
}
@@ -231,10 +231,10 @@ wxString Statistics::getRemainingTime(int objectsCurrent, double dataCurrent)
double q = 0;
double r = 0;
double s = 0;
- for (std::list<record>::const_iterator i = measurements.begin(); i != measurements.end(); ++i)
+ for (const record& rec : measurements)
{
- const double x_i = i->x_i;
- const double f_i = i->f_i;
+ const double x_i = rec.x_i;
+ const double f_i = rec.f_i;
p += x_i * x_i;
q += f_i * x_i;
r += f_i;
bgstack15