aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_api/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-07-03 13:15:37 -0700
committerFuwn <[email protected]>2021-07-03 13:15:37 -0700
commit2cbfca84a1df5e639d072ad79239fd64d8c5b477 (patch)
tree3c45489b5ff509bce2ba237f6566425ca78447d1 /crates/whirl_api/src
parenttest(whirl_common): add criterion benchmarks (diff)
downloadwhirl-2cbfca84a1df5e639d072ad79239fd64d8c5b477.tar.xz
whirl-2cbfca84a1df5e639d072ad79239fd64d8c5b477.zip
refactor(whirl_common): rename `seconds_to_hrtime` to `unixts_to_hrtime`
Diffstat (limited to 'crates/whirl_api/src')
-rw-r--r--crates/whirl_api/src/routes/stats/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/whirl_api/src/routes/stats/mod.rs b/crates/whirl_api/src/routes/stats/mod.rs
index d5efc91..5ec5eee 100644
--- a/crates/whirl_api/src/routes/stats/mod.rs
+++ b/crates/whirl_api/src/routes/stats/mod.rs
@@ -23,7 +23,7 @@ pub fn statistics() -> HttpResponse {
system: StatisticsSystem {
os_type: sys.name().unwrap(),
release: sys.kernel_version().unwrap(),
- uptime: whirl_common::system::seconds_to_hrtime(usize::try_from(sys.uptime()).unwrap()),
+ uptime: whirl_common::system::unixts_to_hrtime(usize::try_from(sys.uptime()).unwrap()),
},
process: StatisticsProcess {
// (process.cpu_usage() * 100.0).round() / 100.0