tls control panel: only show integral seconds while waiting the requested time from Lets Encrypt, in case we got back a non-integral number of seconds to wait

This commit is contained in:
Joshua Tauberer 2016-02-03 08:21:22 -05:00
parent 77937df955
commit 4e18f66db6
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ function provision_tls_cert() {
var now = new Date();
n.append(b);
function ready_to_finish() {
var remaining = r.seconds - Math.round((new Date() - now)/1000);
var remaining = Math.round(r.seconds - (new Date() - now)/1000);
if (remaining > 0) {
setTimeout(ready_to_finish, 1000);
b.text("Finish (" + remaining + "...)")