Skip to content

Commit

Permalink
warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blotocki committed Jul 6, 2023
1 parent 35cd994 commit 9b6e63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void Process::CpuUtilization(std::vector<std::string> stats_string) {

// Calculate cpu usage per
// https://stackoverflow.com/questions/16726779/how-do-i-get-the-total-cpu-usage-of-an-application-from-proc-pid-stat/16736599#16736599
for (auto i = 0; i < stats_string.size(); i++) {
for (long unsigned int i = 0; i < stats_string.size(); i++) {
std::istringstream linestream(stats_string[i]);
if ( i == 13 )
linestream >> stats.utime;
Expand Down

0 comments on commit 9b6e63d

Please sign in to comment.