Skip to content

Commit 6b373df

Browse files
committed
plugins/rdns: export isPast fn
1 parent 39c9f8e commit 6b373df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/plugins/rethinkdns/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,12 @@ async function renew(baseurl) {
481481
}
482482

483483
/**
484+
* Returns true if the timestamp is older than wk weeks, per Date.now()
484485
* @param {int} tsms (in unix millis)
485486
* @param {int} wk (in weeks > 0)
486487
* @returns {bool}
487488
*/
488-
function isPast(tsms, wk) {
489+
export function isPast(tsms, wk) {
489490
if (tsms <= 0 || wk <= 0) {
490491
log.w("isPast: bad args ts/wk", tsms, wk);
491492
return false;

0 commit comments

Comments
 (0)