Fix data bug

This commit is contained in:
rubikscraft 2022-12-26 12:37:48 +01:00
parent 7b6ffb5010
commit f6f94a9e01
No known key found for this signature in database
GPG Key ID: 1463EBE9200A5CD4
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ interface UsageData {
architecture: string;
cpu_count: number;
ram_total: number;
hostname: string;
is_docker: boolean;
is_production: boolean;
@ -150,6 +151,7 @@ export class UsageService {
architecture: process.arch,
cpu_count: os.cpus().length,
ram_total: Math.floor(os.totalmem() / 1024 / 1024),
hostname: os.hostname(),
is_docker: isDocker(),
is_production: this.hostConfig.isProduction(),
};