Skip to content
Snippets Groups Projects
Commit 78cbd2bf authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

made prepd output zipr status as it goes for easier dev

parent d85073e2
No related branches found
No related tags found
No related merge requests found
Pipeline #5045 failed
......@@ -111,6 +111,8 @@ void do_zafl(pqxx::connection &conn, int32_t log_id, const WorkUnit_t& work)
// record the byte in a buffer.
log_buffer += (char)c ;
cout << (char)c << flush;
// check if it's time to update the buffer.
const auto log_buff_big = log_buffer.size() > 1024;
const auto too_long = difftime(time(nullptr), last_update) > 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment