Skip to content
Snippets Groups Projects
Commit 8a7df91f authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

Merge branch 'zonestatus_checktime' of /git/repositories/knot

parents b867ff20 ce5643de
Branches
Tags
No related merge requests found
......@@ -237,7 +237,12 @@ static int remote_c_zonestatus(server_t *s, remote_cmdargs_t* a)
ret = KNOT_ENOMEM;
break;
}
if (snprintf(when, 64, "in %luh%lum%lus",
/*! Workaround until proper zone fetching API and locking
* is implemented (ref #31)
*/
if (dif.tv_sec < 0) {
memcpy(when, "busy", 5);
} else if (snprintf(when, 64, "in %luh%lum%lus",
dif.tv_sec/3600,
(dif.tv_sec % 3600)/60,
dif.tv_sec % 60) < 0) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment