From 9f360c73a1b66c57e5ec60dd426a179f86ee7631 Mon Sep 17 00:00:00 2001 From: n1lsqn Date: Tue, 14 Nov 2023 12:57:03 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B2=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/recommend-music/index.ts | 5 ++++- src/modules/server/index.ts | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/recommend-music/index.ts b/src/modules/recommend-music/index.ts index 5f4dba7..16cb7fe 100644 --- a/src/modules/recommend-music/index.ts +++ b/src/modules/recommend-music/index.ts @@ -99,7 +99,10 @@ const vocaloidUrls = [ 'https://www.nicovideo.jp/watch/sm12343338', 'https://www.nicovideo.jp/watch/sm9375472', 'https://www.nicovideo.jp/watch/sm11489374', - 'https://www.nicovideo.jp/watch/sm13344892' + 'https://www.nicovideo.jp/watch/sm13344892', + 'https://www.nicovideo.jp/watch/sm3075492', + 'https://www.nicovideo.jp/watch/sm12850213', + 'https://www.nicovideo.jp/watch/sm10150980' // ** ] diff --git a/src/modules/server/index.ts b/src/modules/server/index.ts index fc9d84c..7c16392 100644 --- a/src/modules/server/index.ts +++ b/src/modules/server/index.ts @@ -38,7 +38,6 @@ export default class extends Module { @autobind private check() { const average = (arr) => arr.reduce((a, b) => a + b) / arr.length; - const cpuPercentages = this.statsLogs.map(s => s && (s.cpu_usage || s.cpu) * 100 || 0); const cpuPercentage = average(cpuPercentages); if (cpuPercentage >= 70) {