Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
HiGarfield committed Apr 18, 2024
1 parent f83d925 commit 1f1355a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/process_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ int close_process_group(struct process_group *pgroup)
(((t1)->tv_sec - (t2)->tv_sec) * 1e3 + ((t1)->tv_nsec - (t2)->tv_nsec) / 1e6)

/* parameter in range 0-1 */
#define ALFA 0.08
#define ALPHA 0.08
#define MIN_DT 20

void update_process_group(struct process_group *pgroup)
Expand Down Expand Up @@ -266,7 +266,7 @@ void update_process_group(struct process_group *pgroup)
else
{
/* usage adjustment */
p->cpu_usage = (1.0 - ALFA) * p->cpu_usage + ALFA * sample;
p->cpu_usage = (1.0 - ALPHA) * p->cpu_usage + ALPHA * sample;
}
p->cputime = tmp_process.cputime;
}
Expand Down

0 comments on commit 1f1355a

Please sign in to comment.