parent
48ea805999
commit
5c3a56b283
10 changed files with 42 additions and 39 deletions
|
|
@ -2,7 +2,7 @@ import * as os from 'os';
|
|||
import * as si from 'systeminformation';
|
||||
import { getConnection } from 'typeorm';
|
||||
import define from '../../define';
|
||||
import redis from '../../../../db/redis';
|
||||
import { redisClient } from '../../../../db/redis';
|
||||
|
||||
export const meta = {
|
||||
requireCredential: true as const,
|
||||
|
|
@ -115,7 +115,7 @@ export default define(meta, async () => {
|
|||
os: os.platform(),
|
||||
node: process.version,
|
||||
psql: await getConnection().query('SHOW server_version').then(x => x[0].server_version),
|
||||
redis: redis.server_info.redis_version,
|
||||
redis: redisClient.server_info.redis_version,
|
||||
cpu: {
|
||||
model: os.cpus()[0].model,
|
||||
cores: os.cpus().length
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue