round to two float precision

This commit is contained in:
lukas 2021-03-20 15:46:31 +01:00
parent 983d2b9ce7
commit 5351bcb15d

View File

@ -42,7 +42,7 @@ class HeatingInformation extends React.Component<HeatingRestcontollerprops> {
<ListItem>
<ListItemText
primary="Gesammte Heizdauer / Prozentuelle Einschaltzeit"
secondary={stringifyTime(props.data.totalheattime) + ' / ' + props.data.heattimepercent * 100 + '%'}
secondary={stringifyTime(props.data.totalheattime) + ' / ' + (props.data.heattimepercent * 100).toFixed(2) + '%'}
/>
</ListItem>
<ListItem>