Table of Contents

Struct PowerSchedule

Namespace
Pamoja.Profile
Assembly
Pamoja.Profile.dll

How often a node samples as its battery drains, in whole seconds.

public readonly record struct PowerSchedule : IEquatable<PowerSchedule>
Implements
Inherited Members

Constructors

PowerSchedule(ulong, ulong, ulong, float, float, float)

How often a node samples as its battery drains, in whole seconds.

public PowerSchedule(ulong ActiveSecs, ulong SaverSecs, ulong CriticalSecs, float SaverBelow = 0.5, float CriticalBelow = 0.2, float Hysteresis = 0.05)

Parameters

ActiveSecs ulong

Seconds between samples at a healthy charge.

SaverSecs ulong

Seconds between samples while conserving.

CriticalSecs ulong

Seconds between samples when critically low.

SaverBelow float

Enter the saver cadence below this state of charge; 0.5 unless given.

CriticalBelow float

Enter the critical cadence below this state of charge; 0.2 unless given.

Hysteresis float

How far above a threshold the charge must climb to leave the lower cadence; 0.05 unless given.

Properties

ActiveSecs

Seconds between samples at a healthy charge.

public ulong ActiveSecs { get; init; }

Property Value

ulong

CriticalBelow

Enter the critical cadence below this state of charge; 0.2 unless given.

public float CriticalBelow { get; init; }

Property Value

float

CriticalSecs

Seconds between samples when critically low.

public ulong CriticalSecs { get; init; }

Property Value

ulong

Hysteresis

How far above a threshold the charge must climb to leave the lower cadence; 0.05 unless given.

public float Hysteresis { get; init; }

Property Value

float

SaverBelow

Enter the saver cadence below this state of charge; 0.5 unless given.

public float SaverBelow { get; init; }

Property Value

float

SaverSecs

Seconds between samples while conserving.

public ulong SaverSecs { get; init; }

Property Value

ulong