amanusk / s-tui

Terminal-based CPU stress and monitoring utility
https://amanusk.github.io/s-tui/
GNU General Public License v2.0
4.05k stars 139 forks source link

Tempurature graph maxium adjusts to max monitored temp, not cpu high/critical temp #125

Closed BlisteringSyko closed 4 years ago

BlisteringSyko commented 5 years ago

Step 1: Describe your environment

The temp graph seems to change is maximum as the cpu temp increases, this gives the appearance of a constantly maxed out graph, making it not very useful.

Is there a way to simply set the max value for the graph to 100? This would make it visually more useful as you could just glance at the graph and see that it the bars are only 50% the way up, you can estimate the temp. As is i still have to look at the temp in the side bar, defeating the purpose of the graph.

Thanks.

amanusk commented 5 years ago

@BlisteringSyko, thanks for the issue. In some previous versions it worked as you suggest. There is a trade-off in "resolution" when going this route. When setting the bar max value high from the start, smaller changes will not be visible.

Also, not all sensors have a high and critical setting, so we decided to use the highest temperature reached as max and raise the bar if it is surpassed.

There are good arguments both ways, so I am still considering what should be the default behaviour

BlisteringSyko commented 5 years ago

How about an checkbox or an optional config file/setting? Maybe a config setting, if a value exists, to use it as the max, if blank use auto?

I didn't really consider the loss of resolution from using a fixed value so now i understand why it is the way it is currently. I feel like it really depends on the end user though, I personally want to use it to glance at, so if see its maxed out id know that its about to catch fire.

highvoltage commented 5 years ago

I guess this bug is somewhat related, when cpu scaling happens it should probably re-adjust too: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912783

amanusk commented 5 years ago

@BlisteringSyko, @highvoltage, I am currently considering the following behaviour:

Makes sense?

This is currently how master and the beta in pypi is configured: https://pypi.org/project/s-tui/1.0.0b2/