🚧 MB 转 GB

This commit is contained in:
GodD6366 2024-04-15 14:42:42 +08:00
parent 8d06d7b0e1
commit 94881e933d

View File

@ -36,8 +36,14 @@ export default function Component({ service }) {
<Block label="moviebot.subscribe" value={subingTVList.length + subingMovieList.length} /> <Block label="moviebot.subscribe" value={subingTVList.length + subingMovieList.length} />
<Block label="moviebot.sites" value={errorSites ? `异常 ${errorSites}` : `可用 ${normalSites}`} /> <Block label="moviebot.sites" value={errorSites ? `异常 ${errorSites}` : `可用 ${normalSites}`} />
<Block label="moviebot.todayUp" value={`${Math.floor(todayUp)} MB`} /> <Block
<Block label="moviebot.todayDl" value={`${Math.floor(todayDl)} MB`} /> label="moviebot.todayUp"
value={`${todayUp > 1000 ? `${(todayUp / 1000).toFixed(2)} GB` : `${Math.floor(todayUp)} MB`}`}
/>
<Block
label="moviebot.todayDl"
value={`${todayDl > 1000 ? `${(todayDl / 1000).toFixed(2)} GB` : `${Math.floor(todayDl)} MB`}`}
/>
</Container> </Container>
); );
} }