mirror of
https://github.com/ollama/ollama
synced 2026-04-23 08:45:14 +00:00
mlxrunner: show time since last used in cache dump tree
This commit is contained in:
parent
77491439c2
commit
ec55536734
|
|
@ -529,6 +529,9 @@ func (c *kvCache) dumpTree() {
|
|||
if nodeBytes > 0 {
|
||||
label += " " + mlx.PrettyBytes(int(nodeBytes)).String()
|
||||
}
|
||||
if !n.lastUsed.IsZero() {
|
||||
label += fmt.Sprintf(" %s ago", time.Since(n.lastUsed).Truncate(time.Millisecond))
|
||||
}
|
||||
var flags []string
|
||||
if n.user {
|
||||
flags = append(flags, "user")
|
||||
|
|
|
|||
Loading…
Reference in a new issue