Display current load and maximum capacity (#20181)

This commit is contained in:
daerSeebaer
2023-10-18 19:46:32 +02:00
committed by GitHub
parent badb601dd1
commit 8edd5257c4
7 changed files with 75 additions and 13 deletions

View File

@@ -72,10 +72,21 @@ public sealed partial class AmeControllerComponent : SharedAmeControllerComponen
[DataField("nextUpdate")]
public TimeSpan NextUpdate = default!;
/// <summary>
/// The next time this will try to update the controller UI.
/// </summary>
public TimeSpan NextUIUpdate = default!;
/// <summary>
/// The the amount of time that passes between injection attempts.
/// </summary>
[DataField("updatePeriod")]
[ViewVariables(VVAccess.ReadWrite)]
public TimeSpan UpdatePeriod = TimeSpan.FromSeconds(10.0);
/// <summary>
/// The maximum amount of time that passes between UI updates.
/// </summary>
[ViewVariables]
public TimeSpan UpdateUIPeriod = TimeSpan.FromSeconds(3.0);
}