This commit is contained in:
赵鑫 2022-09-08 10:06:51 +08:00
parent 24e0729fe6
commit 08e94394f7

View File

@ -6,6 +6,7 @@ const fs = require('fs')
const http = require('http')
const exec = require('child_process').exec
const port = process.env.PORT || 3000
const host = process.env.HOST || 'localhost'
const hostname = require('os').hostname()
const MEMINFO_FILE_PATH = '/proc/meminfo'
const TEMPERATURE_FILE_PATH = '/sys/class/thermal/thermal_zone0/temp'