Skip to content
Snippets Groups Projects
Commit f07966cb authored by rswindell's avatar rswindell
Browse files

Display elapsed time as just MM:SS instead of HH:MM:SS.

parent 7276d918
No related branches found
No related tags found
No related merge requests found
......@@ -81,16 +81,21 @@ for(i in builds) {
var body = "System: " + system.local_host_name + " - " + system.os_version + "\n\n";
for(i in builds) {
body += system.secondstr(builds[i].end-builds[i].start) + " - ";
body += elapsed_time(builds[i].end-builds[i].start) + " - ";
body += builds[i][0] + "\t" + builds[i][1];
body += "\n";
}
body += "--------\n";
body += system.secondstr(time()-start) + " - total\n";
body += "-----\n";
body += elapsed_time(time()-start) + " - total\n";
send_email(system.platform + " builds successful", lfexpand(body));
function elapsed_time(t)
{
return format("%02u:%02u", t/60, t%60);
}
function file_contents(fname)
{
var file = new File(fname);
......
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