mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 02:36:29 +08:00
fix elpased time
This commit is contained in:
parent
777cca1a09
commit
e5c8743712
@ -24,6 +24,7 @@ const NodePanel: FC<Props> = ({ nodeInfo, collapsed, collapseHandle }) => {
|
|||||||
return `${(time * 1000).toFixed(3)} ms`
|
return `${(time * 1000).toFixed(3)} ms`
|
||||||
if (time > 60)
|
if (time > 60)
|
||||||
return `${parseInt(Math.round(time / 60).toString())} m ${(time % 60).toFixed(3)} s`
|
return `${parseInt(Math.round(time / 60).toString())} m ${(time % 60).toFixed(3)} s`
|
||||||
|
return `${time.toFixed(3)} s`
|
||||||
}
|
}
|
||||||
|
|
||||||
const getTokenCount = (tokens: number) => {
|
const getTokenCount = (tokens: number) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user