Fix log size display

This commit is contained in:
Tommy Mikkelsen 2022-07-01 14:32:40 +02:00
parent 939d1b3b7a
commit 2add232c0a

View file

@ -58,6 +58,7 @@
<script>
import i18n from '../../../../i18n';
import { wtconfig } from '../../General/wtutils';
const log = require("electron-log");
export default {
data() {
@ -177,6 +178,18 @@
case '20971520':
logSizeDisp = '20Mb';
break;
case '41943040':
logSizeDisp = '40Mb';
break;
case '62914560':
logSizeDisp = '60Mb';
break;
case '104857600':
logSizeDisp = '100Mb';
break;
case '209715200':
logSizeDisp = '200Mb';
break;
default:
logSizeDisp = '1Mb';
}