Skip to content

Commit

Permalink
pemdas
Browse files Browse the repository at this point in the history
  • Loading branch information
mlw committed Dec 7, 2022
1 parent e572f04 commit c5e9aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/santad/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void SantaWatchdog(void *context) {

if (tinfo.has_value()) {
// CPU
double total_time = tinfo->total_user_nanos + tinfo->total_system_nanos / (double)NSEC_PER_SEC;
double total_time = (tinfo->total_user_nanos + tinfo->total_system_nanos) / (double)NSEC_PER_SEC;
double percentage =
(((total_time - state->prev_total_time) / (double)kWatchdogTimeInterval) * 100.0);
state->prev_total_time = total_time;
Expand Down

0 comments on commit c5e9aa4

Please sign in to comment.