Skip to content

Commit

Permalink
Furi: add consistentency into float declaration in thread list
Browse files Browse the repository at this point in the history
  • Loading branch information
skotopes committed Jun 13, 2024
1 parent d690d1a commit 1794838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion furi/core/thread_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void furi_thread_list_process(FuriThreadList* instance, uint32_t runtime, uint32
uint32_t item_counter = item->counter_current - item->counter_previous;
if(item_counter && item->counter_previous && item->counter_current) {
item->cpu = (float)item_counter / (float)runtime_counter * 100.0f;
if(item->cpu > 200.0f) item->cpu = .0f;
if(item->cpu > 200.0f) item->cpu = 0.0f;
} else {
item->cpu = 0.0f;
}
Expand Down

0 comments on commit 1794838

Please sign in to comment.