This commit is contained in:
Bryan Ashby
2020-11-09 19:40:55 -07:00
parent 73d3cf85ce
commit e7483569e7
4 changed files with 82 additions and 13 deletions

View File

@@ -109,6 +109,10 @@ class StatLog {
getSystemStat(statName) { return this.systemStats[statName]; }
getFriendlySystemStat(statName, defaultValue) {
return (this.getSystemStat(statName) || defaultValue).toLocaleString();
}
getSystemStatNum(statName) {
return parseInt(this.getSystemStat(statName)) || 0;
}
@@ -220,7 +224,7 @@ class StatLog {
sysDb.run(
`DELETE FROM system_event_log
WHERE id IN(
SELECT id
SELECT id
FROM system_event_log
WHERE log_name = ?
ORDER BY id DESC