fix metrics again

This commit is contained in:
Matt Hill
2021-10-05 15:07:59 -06:00
committed by Aiden McClelland
parent b978d5062f
commit 1732e5403b
2 changed files with 5 additions and 2 deletions

View File

@@ -49,6 +49,9 @@ export class ServerMetricsPage {
try {
const metrics = await this.embassyApi.getServerMetrics({ })
Object.entries(metrics).forEach(([groupKey, groupVal]) => {
if (!this.metrics[groupKey]) {
this.metrics[groupKey] = groupVal
}
Object.entries(groupVal).forEach(([key, val]) => {
this.metrics[groupKey][key] = val
})

View File

@@ -120,7 +120,7 @@ export const serverConfig: ConfigSpec = {
'auto-check-updates': {
type: 'boolean',
name: 'Auto Check for Updates',
description: 'On launch, EmbassyOS will automatically check for updates of itself and your installed services. Updating still requires your approval and action. Updates will never be performed automatically.',
description: 'If enabled, EmbassyOS will automatically check for updates of itself and any installed services. Updating will still require your approval and action. Updates will never be performed automatically.',
default: true,
},
// 'eos-marketplace': {
@@ -144,7 +144,7 @@ export const serverConfig: ConfigSpec = {
'share-stats': {
type: 'boolean',
name: 'Report Bugs',
description: new IonicSafeString(`Bug reports are anonymized and transmitted over Tor. This helps us identify and fix bugs quickly. <a href="https://docs.start9.com" target="_blank" rel="noreferrer">Read more</a> `) as any, // @TODO get actual link
description: new IonicSafeString(`If enabled, generic error codes will be anonymously transmitted over Tor to the Start9 team. This helps us identify and fix bugs quickly. <a href="https://docs.start9.com" target="_blank" rel="noreferrer">Read more</a> `) as any, // @TODO get actual link
default: false,
},
// password: {