fix elpased time

This commit is contained in:
JzoNg 2024-03-15 21:15:22 +08:00
parent 777cca1a09
commit e5c8743712
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ const NodePanel: FC<Props> = ({ nodeInfo, collapsed, collapseHandle }) => {
return `${(time * 1000).toFixed(3)} ms`
if (time > 60)
return `${parseInt(Math.round(time / 60).toString())} m ${(time % 60).toFixed(3)} s`
return `${time.toFixed(3)} s`
}
const getTokenCount = (tokens: number) => {