mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
fix cpu time
This commit is contained in:
parent
5afb89867d
commit
3a896318cb
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ pub fn cpu_time() -> Result<u64> {
|
||||||
{
|
{
|
||||||
let user: u64 = user.parse()?;
|
let user: u64 = user.parse()?;
|
||||||
let system: u64 = system.parse()?;
|
let system: u64 = system.parse()?;
|
||||||
Ok((user + system) * clock_ticks()?)
|
Ok((user + system) / clock_ticks()?)
|
||||||
} else {
|
} else {
|
||||||
Err(Report::msg("Invalid /proc/stat"))
|
Err(Report::msg("Invalid /proc/stat"))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue