cputemp

package module
v0.0.0-...-38871d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HighTemp uint = 64

HighTemp is the highest temperature for the WaitToCool method to detect that the cpu is too hot

note: if set to strict mode, LowTemp will take this variabes place

default: 64

View Source
var Logging bool = true

when Logging is enabled, the WaitToCool method will log info to the console to report when it is waiting for the cpu to cool down

you can set this var to false to disable this feature

default: true

View Source
var LowTemp uint = 56

LowTemp is the lowest temperature for the WaitToCool method to wait for, before deciding that the cpu has colled down, if it was previously throttled by HighTemp (except in strict mode, where LowTemp takes the place of HighTemp)

default: 56

Functions

func GetTemp

func GetTemp() uint

GetTemp returns the average cpu temperature in celsius

func WaitToCool

func WaitToCool(strict bool)

WaitToCool makes your function wait for the cpu to cool down

by default, if the temperature > HighTemp, it will wait until the temperature <= LowTemp

in strict mode, this will run if temperature > LowTemp

HighTemp = 64 LowTemp = 56

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL