mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
The log2 normalization formula `50 * (1 + log2(ratio))` produces negative values (clamped to 0) whenever the measured value is less than half the reference. For example, a CPU scoring 1993 events/sec against a 5000 reference gives ratio=0.4, log2(0.4)=-1.32, score=-16 -> 0%. Fix by dividing log2 by 3 to widen the usable range. This preserves the 50% score at the reference value while allowing below-average hardware to receive proportional non-zero scores (e.g., 28% for the CPU above). Also adds debug logging for CPU sysbench output parsing to aid future diagnosis of parsing issues. Fixes #415 |
||
|---|---|---|
| .. | ||
| controllers | ||
| exceptions | ||
| jobs | ||
| middleware | ||
| models | ||
| services | ||
| utils | ||
| validators | ||