Fix dumb percentage

dev/git-series/gccdum
Matt Godbolt 7 years ago
parent 5f0ab8ee45
commit a0ce94b58f

@ -330,8 +330,8 @@ Compile.prototype.checkSource = function (source) {
};
Compile.prototype.cacheStats = function () {
var pc = (100 * this.cacheHits) / (this.cacheMisses + this.cacheMisses);
console.log("Cache stats: " + this.cacheHits + " hits, " + this.cacheMisses + " misses (" + pc.toString(2) +
var pc = (100 * this.cacheHits) / (this.cacheMisses + this.cacheHits);
console.log("Cache stats: " + this.cacheHits + " hits, " + this.cacheMisses + " misses (" + pc.toFixed(2) +
"%), LRU has " + this.cache.itemCount + " item(s) totalling " + this.cache.length + " bytes");
};

Loading…
Cancel
Save