Files
Checkmate/client/src/Pages/Logs/Diagnostics/components/gauges/utils.js
T
2025-07-10 16:08:04 -07:00

5 lines
116 B
JavaScript

export const getPercentage = (value, total) => {
if (!value || !total) return 0;
return (value / total) * 100;
};