mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 04:03:47 +00:00
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:
parent
54dc196b5e
commit
5d609e3ece
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user