<script setup>
import {useNetworkSumMaxRate} from "src/utils/system/network";
import {bytesToSizeWithUnit} from "src/utils/file/file";

const networkSumMaxRate = useNetworkSumMaxRate()
</script>

<template>
    <div class="text-center">
        <el-statistic title="最高下载速度"
                      :formatter="bytesToSizeWithUnit"
                      suffix="/s"
                      :value="networkSumMaxRate.recv">
        </el-statistic>

        <el-statistic title="最高上传速度"
                      :formatter="bytesToSizeWithUnit"
                      suffix="/s"
                      :value="networkSumMaxRate.sent">
        </el-statistic>
    </div>
</template>

<style scoped>

</style>
