Skip to content

Commit

Permalink
Added multiplication to server CPU usage 24H high to get percent
Browse files Browse the repository at this point in the history
  • Loading branch information
cp6 committed Oct 7, 2023
1 parent 3dd9bf3 commit 3e6adc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/Pages/Servers/Usage/Cpu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function Cpu({auth}) {

<section className="bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm">
<p className="p-2 text-gray-700 dark:text-gray-400">Highest usage past
24H: {high.cpu_usage} at {format(new Date(high.created_at), 'hh:mma')}</p>
24H: {Math.round(high.cpu_usage * 10)} at {format(new Date(high.created_at), 'hh:mma')}</p>
<div className="w-full">
<Chart
options={data.options}
Expand Down

0 comments on commit 3e6adc7

Please sign in to comment.