fix trimming
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
db5929f4a5
commit
04edeccbf4
@ -298,8 +298,12 @@ var importAnalyzeCmd = &cli.Command{
|
|||||||
})
|
})
|
||||||
if len(expensiveInvocs) != 0 {
|
if len(expensiveInvocs) != 0 {
|
||||||
leastExpensiveInvoc = expensiveInvocs[len(expensiveInvocs)-1].Invoc.Duration
|
leastExpensiveInvoc = expensiveInvocs[len(expensiveInvocs)-1].Invoc.Duration
|
||||||
|
n := 30
|
||||||
|
if len(expensiveInvocs) < n {
|
||||||
|
n = len(expensiveInvocs)
|
||||||
|
}
|
||||||
|
expensiveInvocs = expensiveInvocs[:n]
|
||||||
}
|
}
|
||||||
expensiveInvocs = expensiveInvocs[:30]
|
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user