Skip to content

Commit

Permalink
currenClockSpeed_MHz linux return
Browse files Browse the repository at this point in the history
  • Loading branch information
lfreist committed Jun 24, 2023
1 parent 91cfa28 commit b6f66f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int64_t get_freq_by_id_and_type(int proc_id, const std::string& type) {
}

// _____________________________________________________________________________________________________________________
int CPU::currentClockSpeed_MHz() const { return get_freq_by_id_and_type(_core_id, "scaling_cur_freq"); }
int64_t CPU::currentClockSpeed_MHz() const { return get_freq_by_id_and_type(_core_id, "scaling_cur_freq"); }

// =====================================================================================================================
// _____________________________________________________________________________________________________________________
Expand Down

0 comments on commit b6f66f0

Please sign in to comment.