lint
This commit is contained in:
parent
7e725f4894
commit
491443379f
@ -42,7 +42,7 @@ export default function CpuTemp({ expanded, units, refresh = 1500, tempmin = 0,
|
||||
|
||||
const minTemp = tempmin < mainTemp ? tempmin : mainTemp;
|
||||
let maxTemp = tempmax;
|
||||
if(maxTemp < minTemp) {
|
||||
if (maxTemp < minTemp) {
|
||||
maxTemp = unit === "celsius" ? data.cputemp.max : convertToFahrenheit(data.cputemp.max);
|
||||
}
|
||||
|
||||
|
||||
@ -23,7 +23,9 @@ export default function Resources({ options }) {
|
||||
<Disk key={disk} options={{ disk }} expanded={expanded} diskUnits={diskUnits} refresh={refresh} />
|
||||
))
|
||||
: options.disk && <Disk options={options} expanded={expanded} diskUnits={diskUnits} refresh={refresh} />}
|
||||
{options.cputemp && <CpuTemp expanded={expanded} units={units} refresh={refresh} tempmin={tempmin} tempmax={tempmax} />}
|
||||
{options.cputemp && (
|
||||
<CpuTemp expanded={expanded} units={units} refresh={refresh} tempmin={tempmin} tempmax={tempmax} />
|
||||
)}
|
||||
{options.uptime && <Uptime refresh={refresh} />}
|
||||
</div>
|
||||
{options.label && (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user