From 59abcc476ef1743586294bc1d40f8ce67cd399d7 Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Mon, 17 Feb 2020 14:13:17 +0100 Subject: [PATCH] subproc: debug log when hotting SIHQUIT (Ctrl+\) #2 - better check --- subproc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subproc.cc b/subproc.cc index 8894d2b..16e2c0a 100644 --- a/subproc.cc +++ b/subproc.cc @@ -250,7 +250,7 @@ void displayProc(nsjconf_t* nsjconf) { uint64_t left = nsjconf->tlimit ? nsjconf->tlimit - (uint64_t)diff : 0; LOG_I("pid=%d, Remote host: %s, Run time: %ld sec. (time left: %s s.)", pid.first, pid.second.remote_txt.c_str(), (long)diff, - left == 0 ? "unlimited" : std::to_string(left).c_str()); + nsjconf->tlimit ? std::to_string(left).c_str() : "unlimited"); } } -- 2.34.1