Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mlw committed Dec 7, 2022
1 parent c5e9aa4 commit 2f2ad2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/santad/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ 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 2f2ad2d

Please sign in to comment.