1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-11-02 08:34:44 +00:00

Show file sizes of artifacts (#53)

Show artifacts sizes in webui
This commit is contained in:
Vaclav Valicek
2018-06-01 09:14:59 +02:00
committed by Oliver Giles
parent bbbef11304
commit fba2d226ef
3 changed files with 9 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ void Laminar::populateArtifacts(Json &j, std::string job, uint num) const {
j.StartObject();
j.set("url", archiveUrl + it->path().string().substr(prefixLen));
j.set("filename", it->path().string().substr(scopeLen+1));
j.set("size", fs::file_size(it->path()));
j.EndObject();
}
}