We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d27274 commit bd70f0bCopy full SHA for bd70f0b
plugins/stats/stats.js
@@ -64,7 +64,7 @@
64
65
// percentage helper
66
const percentage = (portion, total) =>
67
- ((portion / total) * 100).toFixed(2) + "%";
+ (total > 0 ? ((portion / total) * 100).toFixed(2) : 0) + "%";
68
69
// *** actual stats fetching ***
70
// performer of scenes with any StashID
0 commit comments