-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add settings, dynamically choose update rate
Closes #2: add two settings for sample rate and sample count. It is possible to set these such that calculating rates of change is impossible. On the other hand, it should really help moderate system load if needed. Closes #14: samples are divided into buckets based on the signal's guessed update rate. The guess can change downward (signal updates faster than 300 ticks), but never upward (as yet). The first bucket is always ignored and the remaining buckets' largest values are used to determine the rate of change per minute, and the ETD, of the signal.
- Loading branch information
Showing
4 changed files
with
187 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
data:extend{ | ||
{ | ||
type = "int-setting", | ||
name = "prodmon-sample-frequency", | ||
setting_type = "runtime-global", | ||
default_value = 60, | ||
minimum_value = 10, | ||
maximum_value = 300, | ||
order = "a", | ||
}, | ||
{ | ||
type = "int-setting", | ||
name = "prodmon-sample-count", | ||
setting_type = "runtime-global", | ||
default_value = 16, | ||
minimum_value = 10, | ||
maximum_value = 50, | ||
order = "b", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters