Skip to content

Commit

Permalink
Renames the auto parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ribalba committed Feb 15, 2024
1 parent fa5d43b commit 69dbe85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def interpolate_predictions(predictions):
This is achieved by multiplying the interval between inputs with the estimated wattage'
)

parser.add_argument('--auto', action='store_true', help='Will get the CPU utilization through psutil.')
parser.add_argument('--interval', type=float, help='Interval in seconds if auto is used.', default=1.0)
parser.add_argument('--autoinput', action='store_true', help='Will get the CPU utilization through psutil.')
parser.add_argument('--interval', type=float, help='Interval in seconds if autoinput is used.', default=1.0)

args = parser.parse_args()

Expand Down Expand Up @@ -143,7 +143,7 @@ def interpolate_predictions(predictions):
interpolated_predictions = interpolate_predictions(inferred_predictions)

input_source = sys.stdin
if args.auto:
if args.autoinput:
import psutil
def cpu_utilization():
while True:
Expand Down

0 comments on commit 69dbe85

Please sign in to comment.