mirror of
https://github.com/BreizhHardware/memoizee.git
synced 2026-01-18 16:37:21 +01:00
style: prettier
This commit is contained in:
10
profile.js
10
profile.js
@@ -34,12 +34,8 @@ Object.defineProperty(
|
||||
if (!stats[id]) stats[id] = { initial: 0, cached: 0 };
|
||||
data = stats[id];
|
||||
|
||||
conf.on("set", function () {
|
||||
++data.initial;
|
||||
});
|
||||
conf.on("get", function () {
|
||||
++data.cached;
|
||||
});
|
||||
conf.on("set", function () { ++data.initial; });
|
||||
conf.on("get", function () { ++data.cached; });
|
||||
})
|
||||
);
|
||||
|
||||
@@ -53,7 +49,7 @@ exports.log = function () {
|
||||
if (!initialCount && !cachedCount) {
|
||||
return "0.00";
|
||||
}
|
||||
return (cachedCount / (initialCount + cachedCount) * 100).toFixed(2);
|
||||
return ((cachedCount / (initialCount + cachedCount)) * 100).toFixed(2);
|
||||
};
|
||||
|
||||
log = "------------------------------------------------------------\n";
|
||||
|
||||
Reference in New Issue
Block a user