mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
pass in duration(millis) instead of timestamp
This commit is contained in:
@@ -48,7 +48,7 @@ impl HealthChecks {
|
|||||||
pub async fn check_all(
|
pub async fn check_all(
|
||||||
&self,
|
&self,
|
||||||
ctx: &RpcContext,
|
ctx: &RpcContext,
|
||||||
started: &DateTime<Utc>,
|
started: DateTime<Utc>,
|
||||||
pkg_id: &PackageId,
|
pkg_id: &PackageId,
|
||||||
pkg_version: &Version,
|
pkg_version: &Version,
|
||||||
volumes: &Volumes,
|
volumes: &Volumes,
|
||||||
@@ -77,7 +77,7 @@ impl HealthCheck {
|
|||||||
&self,
|
&self,
|
||||||
ctx: &RpcContext,
|
ctx: &RpcContext,
|
||||||
id: &HealthCheckId,
|
id: &HealthCheckId,
|
||||||
started: &DateTime<Utc>,
|
started: DateTime<Utc>,
|
||||||
pkg_id: &PackageId,
|
pkg_id: &PackageId,
|
||||||
pkg_version: &Version,
|
pkg_version: &Version,
|
||||||
volumes: &Volumes,
|
volumes: &Volumes,
|
||||||
@@ -90,7 +90,7 @@ impl HealthCheck {
|
|||||||
pkg_version,
|
pkg_version,
|
||||||
Some(&format!("{}Health", id)),
|
Some(&format!("{}Health", id)),
|
||||||
volumes,
|
volumes,
|
||||||
Some(started),
|
Some(Utc::now().signed_duration_since(started).num_milliseconds()),
|
||||||
true,
|
true,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ impl MainStatus {
|
|||||||
.health_checks
|
.health_checks
|
||||||
.check_all(
|
.check_all(
|
||||||
ctx,
|
ctx,
|
||||||
started,
|
*started,
|
||||||
&manifest.id,
|
&manifest.id,
|
||||||
&manifest.version,
|
&manifest.version,
|
||||||
&manifest.volumes,
|
&manifest.volumes,
|
||||||
|
|||||||
Reference in New Issue
Block a user