Bug 822148 (part 7) - DMD: use Percent() in a couple of appropriate places. r=jlebar.

--HG--
extra : rebase_source : 4f99a7aca69ccf821209169a5b91c50738de736c
This commit is contained in:
Nicholas Nethercote 2012-12-19 19:41:57 -08:00
parent 54dc196b5e
commit 5d609e3ece

View File

@ -2067,10 +2067,8 @@ Dump(Writer aWriter)
size_t count = locService->CacheCount();
size_t capacity = locService->CacheCapacity();
double hitRate = 100 * double(hits) / requests;
double occupancy = 100 * double(count) / capacity;
W(" Location service cache: %4.1f%% hit rate, %.1f%% occupancy at end\n",
hitRate, occupancy);
Percent(hits, requests), Percent(count, capacity));
W("\n");
}