mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-21 09:09:22 +00:00
Always show 2 decimal places for FFmpeg speed.
This commit is contained in:
parent
49f141d64a
commit
58a1304ddc
1 changed files with 2 additions and 2 deletions
|
|
@ -613,13 +613,13 @@ const ChannelCard = ({
|
|||
</Tooltip>
|
||||
)}
|
||||
{channel.ffmpeg_speed && (
|
||||
<Tooltip label={`Current Speed: ${channel.ffmpeg_speed}x`}>
|
||||
<Tooltip label={`Current Speed: ${parseFloat(channel.ffmpeg_speed).toFixed(2)}x`}>
|
||||
<Badge
|
||||
size="sm"
|
||||
variant="light"
|
||||
color={parseFloat(channel.ffmpeg_speed) >= 1.0 ? "green" : "red"}
|
||||
>
|
||||
{channel.ffmpeg_speed}x
|
||||
{parseFloat(channel.ffmpeg_speed).toFixed(2)}x
|
||||
</Badge>
|
||||
</Tooltip>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue