Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed Mar 12, 2024
1 parent c582ac2 commit a09a803
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/variorum/Intel/intel_power_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,12 +1061,13 @@ int delta_rapl_data(off_t msr_rapl_unit)
if ((double)*rapl->dram_bits[i] - (double)rapl->old_dram_bits[i] < 0)
{
rapl->dram_delta_bits[i] = (uint64_t)((*rapl->dram_bits[i] +
(uint64_t)max_joules) - rapl->old_dram_bits[i]);
(uint64_t)max_joules) - rapl->old_dram_bits[i]);
translate(i, &rapl->dram_delta_bits[i], &rapl->dram_delta_joules[i],
BITS_TO_JOULES, msr_rapl_unit);
#ifdef VARIORUM_DEBUG
fprintf(stderr, "OVF dram%d new=0x%lx old=0x%lx -> %lf\n", i, *rapl->dram_bits[i],
rapl->old_dram_bits[i], rapl->dram_delta_joules[i]);
fprintf(stderr, "OVF dram%d new=0x%lx old=0x%lx -> %lf\n", i,
*rapl->dram_bits[i], rapl->old_dram_bits[i],
rapl->dram_delta_joules[i]);
#endif
}
else
Expand Down

0 comments on commit a09a803

Please sign in to comment.