question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uptime location experiment

See original GitHub issue

https://github.com/aristocratos/bpytop/blob/59916c9a85f416d1927d2c6b3e3abdee0708a5fe/bpytop.py#L1640

Changed this to:

out += f'{Mv.to(y - 1, x + w - 32)}{THEME.graph_text} up {cpu.uptime} '

I modified the uptime display location in my copy of bpytop just to see how it would turn out. I haven’t gotten sophisticated enough to add the vertical green lines, but I have to say for now I’m just fine with how it looks, after adding a space at the beginning and end.

It works at all window sizes, and should have enough room at 80x24 even on a system with up to 999 days of uptime. There does seem to be a small glitch when it rolls over from 23:59 hours to 0:00, which leaves two spaces at the end instead of one until the app is restarted (or you get back to 10:00 or more hours of uptime).

I’m not offering this up as a pull request for now, but I am curious why anyone would not want this to be the default. It actually seems to balance the menu bar out a bit now that the mini mode indicator has been added to the left side. The balance would be even better if " days" was changed to “d” to make it more compact. Then it could be moved over to about x + w - 29 instead of x + w - 32.

Of course the main point of trying this out was because I didn’t like the way the current uptime location interferes with the CPU graph rendering. This fixes that, for me, in a way that I like, and I wonder what others think of doing it this way.

Screen Shot 2020-08-26 at 2 07 42 PM

Screen Shot 2020-08-26 at 2 07 06 PM

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
aristocratoscommented, Sep 5, 2020

Since this relates to design choices rather than functionality and is very subjective, I’ll leave this open for others to voice opinions before making any changes.

0reactions
RedBearAKcommented, Sep 15, 2020

I’m going to close this since there seems to be little interest in moving the uptime, and the battery info is now inhabiting the top bar.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uptime, YouTube's experimental app for watching videos with ...
YouTube's experimental app Uptime, which lets you watch videos with friends while reacting and commenting, has now opened up to all users.
Read more >
Website Uptime Test: Check Website Status - Uptrends
Know if your site is down from locations worldwide. Uptrends' Free Website Uptime tool tells more than forty of Uptrends' 231 checkpoints to...
Read more >
Uptime Institute: Digital Infrastructure Authority | Tier ...
The source for industry tier certification in data center design, build & operations. Click here to learn about our professional certification and ...
Read more >
Set up an Uptime test - Splunk Documentation
Learn how to set up an Uptime test in Splunk Synthetic Monitoring. ... In the Locations field, enter the locations from which you...
Read more >
How-to-Install.md at master · louislam/uptime-kuma-wiki - GitHub
Run with one click on PikaPods.com. Free for about 3 months with welcome credit. PikaPods. Termux (Unofficial/Experiment). Do you have an old ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found