Merge pull request #25 from n1lsqn/feat/曲追加

feat: 曲追加
This commit is contained in:
n1lsqn 2023-11-14 12:58:45 +09:00 committed by GitHub
commit da390b87ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -99,7 +99,10 @@ const vocaloidUrls = [
'https://www.nicovideo.jp/watch/sm12343338', 'https://www.nicovideo.jp/watch/sm12343338',
'https://www.nicovideo.jp/watch/sm9375472', 'https://www.nicovideo.jp/watch/sm9375472',
'https://www.nicovideo.jp/watch/sm11489374', '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'
// ** // **
] ]

View file

@ -38,7 +38,6 @@ export default class extends Module {
@autobind @autobind
private check() { private check() {
const average = (arr) => arr.reduce((a, b) => a + b) / arr.length; 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 cpuPercentages = this.statsLogs.map(s => s && (s.cpu_usage || s.cpu) * 100 || 0);
const cpuPercentage = average(cpuPercentages); const cpuPercentage = average(cpuPercentages);
if (cpuPercentage >= 70) { if (cpuPercentage >= 70) {