Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ポーリング間隔の変更、from 10ms to 1000ms #163

Open
wants to merge 1 commit into
base: main-2023
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const session = require('express-session');
const passport = require('passport');
const GitHubStrategy = require('passport-github2').Strategy;

const GITHUB_CLIENT_ID = 'f756acb8748f85e2014b';
const GITHUB_CLIENT_SECRET = '0fc57f6660bd5da78873eeacda8c131859b64f30';
const GITHUB_CLIENT_ID = 'cbf21418657453b45185';
const GITHUB_CLIENT_SECRET = '03e583a5c4e89e1ed4d571dd4accc754b340f690';

passport.serializeUser((user, done) => {
done(null, user);
Expand Down Expand Up @@ -51,7 +51,7 @@ app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));

app.use(session({ secret: '417cce55dcfcfaeb', resave: false, saveUninitialized: false }));
app.use(session({ secret: '13fcb1025fd23c4b', resave: false, saveUninitialized: false }));
app.use(passport.initialize());
app.use(passport.session());

Expand Down
2 changes: 1 addition & 1 deletion app/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ setInterval(() => {
.then(data => {
loadavg.text(data.loadavg.toString());
});
}, 10);
}, 1000);
2 changes: 1 addition & 1 deletion public/javascripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -10830,7 +10830,7 @@ setInterval(function () {
}).then(function (data) {
loadavg.text(data.loadavg.toString());
});
}, 10);
}, 1000);
})();

/******/ })()
Expand Down