@@ -9,6 +9,7 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"
99import { directive as vTippy } from " vue-tippy"
1010import { HelpService } from " @/services/help-service"
1111import { faInfoCircle } from " @fortawesome/free-solid-svg-icons"
12+ import { blocksAsBytes } from " @/filters"
1213import useNode from " @/node"
1314
1415interface Props {
@@ -38,13 +39,19 @@ const readSpeedProp = (exclusivePrefix +
3839 " AVERAGE_" +
3940 scope +
4041 " IO_READ_SPEED" ) as keyof typeof NodeProp
42+ const readBlocksProp = (exclusivePrefix +
43+ scope +
44+ " READ_BLOCKS" ) as keyof typeof NodeProp
4145const writeTimeProp = (exclusivePrefix +
4246 scope +
4347 " IO_WRITE_TIME" ) as keyof typeof NodeProp
4448const writeSpeedProp = (exclusivePrefix +
4549 " AVERAGE_" +
4650 scope +
4751 " IO_WRITE_SPEED" ) as keyof typeof NodeProp
52+ const writtenBlocksProp = (exclusivePrefix +
53+ scope +
54+ " WRITTEN_BLOCKS" ) as keyof typeof NodeProp
4855 </script >
4956
5057<template >
@@ -53,6 +60,10 @@ const writeSpeedProp = (exclusivePrefix +
5360 <td class =" text-end" v-if =" node[NodeProp[readTimeProp]]" >
5461 {{ formattedProp(readTimeProp) }}
5562 <br />
63+ <small >{{
64+ blocksAsBytes(node[NodeProp[readBlocksProp]] as number)
65+ }}</small >
66+ <br />
5667 <small >~{{ formattedProp(readSpeedProp) }}</small >
5768 <FontAwesomeIcon
5869 :icon =" faInfoCircle "
@@ -70,6 +81,10 @@ const writeSpeedProp = (exclusivePrefix +
7081 <td class =" text-end" v-if =" node[NodeProp[writeTimeProp]]" >
7182 {{ formattedProp(writeTimeProp) }}
7283 <br />
84+ <small >{{
85+ blocksAsBytes(node[NodeProp[writtenBlocksProp]] as number)
86+ }}</small >
87+ <br />
7388 <small >~{{ formattedProp(writeSpeedProp) }}</small >
7489 </td >
7590 <td class =" text-end" v-else >-</td >
0 commit comments