diff --git a/common/Duration.ts b/common/Duration.ts
index 6c64e30..9d4ed01 100644
--- a/common/Duration.ts
+++ b/common/Duration.ts
@@ -36,6 +36,6 @@ export class Duration {
}
toString(): string {
- return `${this.minutes}M ${this.seconds}S`;
+ return `${this.minutes}M ${this.seconds.toFixed(1)}S`;
}
}
diff --git a/common/sprinklers/SectionRunner.ts b/common/sprinklers/SectionRunner.ts
index a05a90a..6f875ed 100644
--- a/common/sprinklers/SectionRunner.ts
+++ b/common/sprinklers/SectionRunner.ts
@@ -5,9 +5,11 @@ export class SectionRun {
readonly sectionRunner: SectionRunner;
readonly id: number;
section: number;
+ totalDuration: number = 0;
duration: number = 0;
startTime: Date | null = null;
pauseTime: Date | null = null;
+ unpauseTime: Date | null = null;
constructor(sectionRunner: SectionRunner, id: number = 0, section: number = 0) {
this.sectionRunner = sectionRunner;
diff --git a/common/sprinklers/schema/index.ts b/common/sprinklers/schema/index.ts
index 5589286..32a1a40 100644
--- a/common/sprinklers/schema/index.ts
+++ b/common/sprinklers/schema/index.ts
@@ -34,9 +34,11 @@ export const sectionRun: ModelSchema = {
props: {
id: primitive(),
section: primitive(),
+ totalDuration: common.duration,
duration: common.duration,
startTime: common.date,
pauseTime: common.date,
+ unpauseTime: common.date,
},
};