diff --git a/exec/testbuild.js b/exec/testbuild.js index b4d5ad119fbc343cff6bd6bb6ecb29a3fa2a7a22..4e3b8a5c661b30ca94476c22feccb955b7824de4 100644 --- a/exec/testbuild.js +++ b/exec/testbuild.js @@ -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);