Commit 496dbf47 authored by Leo Iannacone's avatar Leo Iannacone

fix elapsed time for builds take more than one day

parent 98dc1124
......@@ -378,7 +378,8 @@ function Page_Distrubion(socket) {
info += ' - finished ' + Utils.format_time(socket_data.end, true);
info += ' - elapsed time: <b>';
var elapsed = new Date((socket_data.end - socket_data.start) * 1000);
info += Utils.num_two_digits(elapsed.getUTCHours()) + ':';
var tot_hours = (elapsed.getUTCDate() - 1) * 24 + elapsed.getUTCHours();
info += Utils.num_two_digits(tot_hours) + ':';
info += Utils.num_two_digits(elapsed.getUTCMinutes()) + ':';
info += Utils.num_two_digits(elapsed.getUTCSeconds());
}
......
Markdown is supported
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