Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 305d5c19 authored by Connor O'Brien's avatar Connor O'Brien
Browse files

ANDROID: uid_sys_stats: report uid_cputime stats in microseconds



A porting error in commit 0ae80885 ("ANDROID: uid_cputime: Adds
accounting for the cputimes per uid.") caused
/proc/uid_cputime/show_uid_stat to report times in milliseconds
instead of microseconds. Restore the expected behavior.

Bug: 133273154
Signed-off-by: default avatarConnor O'Brien <connoro@google.com>
Change-Id: I203919d1d44b300dab91810b16626a6950b063f8
parent bf4f1c0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -370,7 +370,7 @@ static int uid_cputime_show(struct seq_file *m, void *v)
		u64 total_stime = uid_entry->stime +
							uid_entry->active_stime;
		seq_printf(m, "%d: %llu %llu\n", uid_entry->uid,
			ktime_to_ms(total_utime), ktime_to_ms(total_stime));
			ktime_to_us(total_utime), ktime_to_us(total_stime));
	}

	rt_mutex_unlock(&uid_lock);