Rapl node capping daemon #21

Merged
ridv merged 18 commits from raplDaemon into master 2020-01-19 19:52:32 +00:00
Showing only changes of commit 2f52fa2eb9 - Show all commits

View file

@ -62,8 +62,8 @@ func capNode(base string, percentage int) error {
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
// maxPower returns the value in float of the maximum watts a power zone
// can use.
func maxPower(zone string) (uint64, error) {
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
maxPower, err := ioutil.ReadFile(zone)
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
func maxPower(maxFile string) (uint64, error) {
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
maxPower, err := ioutil.ReadFile(maxFile)
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
if err != nil {
return 0.0, err
}
@ -74,12 +74,11 @@ func maxPower(zone string) (uint64, error) {
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
}
return maxPoweruW, nil
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
}
// capZone caps a power zone to a specific amount of watts specified by value
func capZone(zone string, value uint64) error {
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
err := ioutil.WriteFile(zone, []byte(strconv.FormatUint(value, 10)), 0644)
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
func capZone(limitFile string, value uint64) error {
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
err := ioutil.WriteFile(limitFile, []byte(strconv.FormatUint(value, 10)), 0644)
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
if err != nil {
return err
}

pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it
pradykaushik commented 2020-01-13 19:22:44 +00:00 (Migrated from github.com)

constraint_1 is the shorter window.

constraint_1 is the shorter window.
pradykaushik commented 2020-01-13 19:23:24 +00:00 (Migrated from github.com)

maybe just say cap percentage must be in the range (0, 100].

maybe just say **cap percentage must be in the range (0, 100]**.
pradykaushik commented 2020-01-13 19:29:52 +00:00 (Migrated from github.com)

constraint_0 is the longer window.
Going by this we are intending to use the longer window for running average calculations.
So, change the variable name to maxPowerFileLongWindow?

constraint_0 is the longer window. Going by [this](https://github.com/spdfg/elektron/blob/master/scripts/RAPL_PKG_Throttle.py#L48) we are intending to use the longer window for running average calculations. So, change the variable name to `maxPowerFileLongWindow`?
pradykaushik commented 2020-01-13 19:32:00 +00:00 (Migrated from github.com)

ditto.

ditto.
pradykaushik commented 2020-01-13 19:32:28 +00:00 (Migrated from github.com)

overflows

overflow~s~
pradykaushik commented 2020-01-13 19:38:12 +00:00 (Migrated from github.com)

fits on a single line.

fits on a single line.
ridv commented 2020-01-17 17:34:53 +00:00 (Migrated from github.com)

Can you expand on this comment?

Can you expand on this comment?
pradykaushik commented 2020-01-17 22:19:20 +00:00 (Migrated from github.com)

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.

Actually, your way of representing the ranges is more explicit and clear. One is not well-versed with range expressions would still be able to understand your explanation. So, ignore my previous statement and leave it as is.
pradykaushik commented 2020-01-17 22:20:18 +00:00 (Migrated from github.com)

Either change overflows to overflow, or get rid of the "an".

Either change **overflows** to **overflow**, or get rid of the "an".
ridv commented 2020-01-18 01:21:46 +00:00 (Migrated from github.com)

Good catch, fixed.

Good catch, fixed.
ridv commented 2020-01-18 01:22:14 +00:00 (Migrated from github.com)

Fixed this, definitely a mistake on my part. Thanks for catching it!

Fixed this, definitely a mistake on my part. Thanks for catching it!
ridv commented 2020-01-18 01:22:28 +00:00 (Migrated from github.com)

I'll revert it

I'll revert it