luci-app-cpufreq: upthreshold/factor: depend on ondemand

This commit is contained in:
CN_SZTL 2020-08-23 22:53:46 +08:00
parent c98bbb2644
commit 11cfa7b305
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -49,6 +49,7 @@ upthreshold.rmempty = false
upthreshold.description = translate("Kernel make a decision on whether it should increase the frequency (%)")
upthreshold.placeholder = 50
upthreshold.default = 50
upthreshold:depends("governor", "ondemand")
factor = s:option(Value, "factor", translate("CPU Switching Sampling rate"))
factor.datatype="range(1,100000)"
@ -56,5 +57,6 @@ factor.rmempty = false
factor.description = translate("The sampling rate determines how frequently the governor checks to tune the CPU (ms)")
factor.placeholder = 10
factor.default = 10
factor:depends("governor", "ondemand")
return mp