1
0

fix: correctly handle already installed kernels for stats

This commit is contained in:
dump_stack() 2023-05-26 16:21:01 +00:00
parent 56e9898d75
commit 650cf65fa4
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -120,6 +120,8 @@ func (cmd *KernelCmd) GenKernel(km config.Target, pkg string) {
flog.Info().Msg("install")
}
cmd.stats.overall += 1
var attempt int
for {
attempt++
@ -197,8 +199,6 @@ func (cmd *KernelCmd) Generate(g *Globals, km config.Target) (err error) {
break
}
cmd.stats.overall += 1
log.Info().Msgf("%d/%d %s", i+1, len(pkgs), pkg)
go func(p string) {