mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
fix metrics again
This commit is contained in:
committed by
Aiden McClelland
parent
b978d5062f
commit
1732e5403b
@@ -49,6 +49,9 @@ export class ServerMetricsPage {
|
|||||||
try {
|
try {
|
||||||
const metrics = await this.embassyApi.getServerMetrics({ })
|
const metrics = await this.embassyApi.getServerMetrics({ })
|
||||||
Object.entries(metrics).forEach(([groupKey, groupVal]) => {
|
Object.entries(metrics).forEach(([groupKey, groupVal]) => {
|
||||||
|
if (!this.metrics[groupKey]) {
|
||||||
|
this.metrics[groupKey] = groupVal
|
||||||
|
}
|
||||||
Object.entries(groupVal).forEach(([key, val]) => {
|
Object.entries(groupVal).forEach(([key, val]) => {
|
||||||
this.metrics[groupKey][key] = val
|
this.metrics[groupKey][key] = val
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export const serverConfig: ConfigSpec = {
|
|||||||
'auto-check-updates': {
|
'auto-check-updates': {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
name: 'Auto Check for Updates',
|
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,
|
default: true,
|
||||||
},
|
},
|
||||||
// 'eos-marketplace': {
|
// 'eos-marketplace': {
|
||||||
@@ -144,7 +144,7 @@ export const serverConfig: ConfigSpec = {
|
|||||||
'share-stats': {
|
'share-stats': {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
name: 'Report Bugs',
|
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,
|
default: false,
|
||||||
},
|
},
|
||||||
// password: {
|
// password: {
|
||||||
|
|||||||
Reference in New Issue
Block a user