Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Bashtop not running without cpufreq #16

Closed
Thaolia opened this issue Apr 23, 2020 · 3 comments
Closed

[BUG] Bashtop not running without cpufreq #16

Thaolia opened this issue Apr 23, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Thaolia
Copy link

Thaolia commented Apr 23, 2020

Describe the bug
Bashtop not running on OVH VPS. The problem is about cpufreq part.

To Reproduce
Run bashtop on linux without cpufreq module loaded.

Info (please complete the following information):

  • Last Ubuntu 16.04
  • OVH VPS

Log :
New instance of bashtop version: 0.8.4 Pid: 21402
09:18:30 PM ERROR: On line 724
09:18:30 PM ERROR: On line 724 (MUTED!)
./bashtop: line 669: /sys/devices/system/cpu/cpu-1/cpufreq/scaling_cur_freq: No such file or directory
09:18:37 PM ERROR: On line 669
09:18:37 PM ERROR: On line 682
09:18:37 PM ERROR: On line 724
09:18:37 PM ERROR: On line 724 (MUTED!)
./bashtop: line 1413: mem[available]*100/mem[total]: division by 0 (error token is "mem[total]")
./bashtop: line 669: /sys/devices/system/cpu/cpu-1/cpufreq/scaling_cur_freq: No such file or directory
09:18:38 PM ERROR: On line 669
09:18:38 PM ERROR: On line 682
./bashtop: line 914: local: ': not a valid identifier 09:18:38 PM ERROR: On line 914 ./bashtop: line 914: local: ': not a valid identifier
09:18:38 PM ERROR: On line 914 (MUTED!)
./bashtop: line 914: local: ': not a valid identifier ./bashtop: line 914: local: ': not a valid identifier
./bashtop: line 1565: ( ( 32372130-32371881 ) * 1000 * 1000 ) / ( cpu[hz]time_elapsedcpu[threads] ) : division by 0 (error token is "( cpu[hz]time_elapsedcpu[threads] ) ")

@Thaolia Thaolia added the bug Something isn't working label Apr 23, 2020
@Thaolia Thaolia changed the title [BUG] Bashtop not running on OVH VPS [BUG] Bashtop not running without cpufreq Apr 23, 2020
@aristocratos
Copy link
Owner

Missing cpu frequency error handling fixed and will be in next update.
However you left out bash version which for Ubuntu 16.04 is bash 4.3-14
Bash 4.4 is required and a couple of your errors looks to be related to that.

@Thaolia
Copy link
Author

Thaolia commented Apr 24, 2020

Thanks ! Okay for bash 4.4.

I keep open this ticket for your PR/commit.

Many thanks for your application !

@aristocratos
Copy link
Owner

Fixed in 7e484aa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants