diff --git a/buildmanager.go b/buildmanager.go index fe198ee..c1f0521 100644 --- a/buildmanager.go +++ b/buildmanager.go @@ -220,7 +220,6 @@ func (b *BuildManager) buildQueue(queue []*ProtoPackage, ctx context.Context) er unknownBuilds = true } b.buildingLock.RUnlock() - up = 0 } return nil } diff --git a/proto_package.go b/proto_package.go index af86f77..0d766ba 100644 --- a/proto_package.go +++ b/proto_package.go @@ -263,11 +263,11 @@ func (p *ProtoPackage) build(ctx context.Context) (time.Duration, error) { SetStatus(dbpackage.StatusFailed). ClearSkipReason(). SetBuildTimeStart(start). - SetMaxRss(Rusage.Maxrss). - SetIoOut(Rusage.Oublock). - SetIoIn(Rusage.Inblock). - SetUTime(Rusage.Utime.Sec). - SetSTime(Rusage.Stime.Sec). + ClearMaxRss(). + ClearIoOut(). + ClearIoIn(). + ClearUTime(). + ClearSTime(). SetHash(p.Hash). ExecX(ctx) return time.Since(start), fmt.Errorf("build failed: exit code %d", cmd.ProcessState.ExitCode())