fix: correctly handle already installed kernels for stats
This commit is contained in:
parent
56e9898d75
commit
650cf65fa4
@ -120,6 +120,8 @@ func (cmd *KernelCmd) GenKernel(km config.Target, pkg string) {
|
|||||||
flog.Info().Msg("install")
|
flog.Info().Msg("install")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd.stats.overall += 1
|
||||||
|
|
||||||
var attempt int
|
var attempt int
|
||||||
for {
|
for {
|
||||||
attempt++
|
attempt++
|
||||||
@ -197,8 +199,6 @@ func (cmd *KernelCmd) Generate(g *Globals, km config.Target) (err error) {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.stats.overall += 1
|
|
||||||
|
|
||||||
log.Info().Msgf("%d/%d %s", i+1, len(pkgs), pkg)
|
log.Info().Msgf("%d/%d %s", i+1, len(pkgs), pkg)
|
||||||
|
|
||||||
go func(p string) {
|
go func(p string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user