mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-27 02:41:53 +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(
|
||||
&self,
|
||||
ctx: &RpcContext,
|
||||
started: &DateTime<Utc>,
|
||||
started: DateTime<Utc>,
|
||||
pkg_id: &PackageId,
|
||||
pkg_version: &Version,
|
||||
volumes: &Volumes,
|
||||
@@ -77,7 +77,7 @@ impl HealthCheck {
|
||||
&self,
|
||||
ctx: &RpcContext,
|
||||
id: &HealthCheckId,
|
||||
started: &DateTime<Utc>,
|
||||
started: DateTime<Utc>,
|
||||
pkg_id: &PackageId,
|
||||
pkg_version: &Version,
|
||||
volumes: &Volumes,
|
||||
@@ -90,7 +90,7 @@ impl HealthCheck {
|
||||
pkg_version,
|
||||
Some(&format!("{}Health", id)),
|
||||
volumes,
|
||||
Some(started),
|
||||
Some(Utc::now().signed_duration_since(started).num_milliseconds()),
|
||||
true,
|
||||
)
|
||||
.await?;
|
||||
|
||||
@@ -259,7 +259,7 @@ impl MainStatus {
|
||||
.health_checks
|
||||
.check_all(
|
||||
ctx,
|
||||
started,
|
||||
*started,
|
||||
&manifest.id,
|
||||
&manifest.version,
|
||||
&manifest.volumes,
|
||||
|
||||
Reference in New Issue
Block a user