diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-24 12:50:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-24 13:08:27 +0000 |
commit | c1ce372185dbbbd4b2e61979f45757e4954ee98a (patch) | |
tree | 2f9ba114ce6453db391b3f33c56a463fa7fcbd51 /buildrepo.lua | |
parent | 9a5cf60c88c1e58bdbb8a7610efa6e3bc5c2f44e (diff) | |
download | lua-aports-c1ce372185dbbbd4b2e61979f45757e4954ee98a.tar.bz2 lua-aports-c1ce372185dbbbd4b2e61979f45757e4954ee98a.tar.xz |
buildrepo: print spent time per repo
Diffstat (limited to 'buildrepo.lua')
-rwxr-xr-x | buildrepo.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildrepo.lua b/buildrepo.lua index 898d1e6..bfffcab 100755 --- a/buildrepo.lua +++ b/buildrepo.lua @@ -150,6 +150,7 @@ for _,repo in pairs(args) do local unsorted = {} local logdir = nil stats[repo] = {} + local start_time = os.clock() -- count total aports stats[repo].aports = 0 @@ -222,11 +223,14 @@ for _,repo in pairs(args) do stats[repo].built = built stats[repo].tried = tried stats[repo].deleted = deleted + stats[repo].time = os.clock() - start_time end for repo,stat in pairs(stats) do - print(repo.." aports:", stat.aports) print(repo.." built:", stat.built) print(repo.." tried:", stat.tried) print(repo.." deleted:", stat.deleted) + print(repo.." time:", stat.time) + print(repo.." total built:", stat.aports - stat.tried + stat.built) + print(repo.." total aports:", stat.aports) end |