Files
Checkmate/client/src/Pages/Logs/Diagnostics/components/gauges/utils.js
T

4 lines
116 B
JavaScript
Raw Normal View History

2025-07-10 16:08:04 -07:00
export const getPercentage = (value, total) => {
if (!value || !total) return 0;
return (value / total) * 100;
};