pull/20734/head
Raymond Hill 2023-11-17 07:58:58 -05:00
parent fad3d8cb69
commit a55c26f544
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ async function main() {
const MS_PER_HOUR = 60 * 60 * 1000;
const targetDelayInHours = parseInt(commandLineArgs.get('delay') || '5', 10);
const hoursSinceEpoch = Math.round(Date.now() / MS_PER_HOUR);
const hoursSinceEpoch = Math.floor(Date.now() / MS_PER_HOUR);
if ( (hoursSinceEpoch % targetDelayInHours) === 0 ) {
console.log('yes');
process.exit(0);