mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-12 16:08:48 +00:00
Fix: correct caculations for mailcow widget (#4055)
This commit is contained in:
parent
e2d6794d12
commit
d12b0d5a53
1 changed files with 3 additions and 3 deletions
|
@ -25,9 +25,9 @@ export default function Component({ service }) {
|
|||
}
|
||||
|
||||
const domains = resultData.length;
|
||||
const mailboxes = resultData.reduce((acc, val) => acc + val.mboxes_in_domain, 0);
|
||||
const mails = resultData.reduce((acc, val) => acc + val.msgs_total, 0);
|
||||
const storage = resultData.reduce((acc, val) => acc + val.bytes_total, 0);
|
||||
const mailboxes = resultData.reduce((acc, val) => acc + parseInt(val.mboxes_in_domain, 10), 0);
|
||||
const mails = resultData.reduce((acc, val) => acc + parseInt(val.msgs_total, 10), 0);
|
||||
const storage = resultData.reduce((acc, val) => acc + parseInt(val.bytes_total, 10), 0);
|
||||
|
||||
return (
|
||||
<Container service={service}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue