Comments (8)
Okay, however it shouldn't be a big issue that in 1 of 60 cases the minutes are omitted, especially since it is not live updated but only when when re-navigating to that page.
from dietpi-dashboard.
It's not a problem to open new issues
for your ideas. Best is one issue per idea. We will assign the correct label.
from dietpi-dashboard.
Many thanks for your suggestion.
You used the stable version, right? This has been addressed already with: 9bd3033
Some pages are not constantly reloading data now. Since the seconds timer is pretty overkill on the management page, now only minutes are shown, and the page needs to be reloaded or or navigation button clicked again to have the values updated.
from dietpi-dashboard.
OK, thanks for the quick reply. Yes, I'm on stable. I didn't notice it was already addressed. And indeed seconds is an overkill.
Nevertheless, I think you should explicitly state zero-values here. How does uptime count further? Is there a maximum number for #hours? What is displayed after that? Or do you use, hour, day, weeks, months, yerars and so on?
from dietpi-dashboard.
Leading and trailing zero units are omitted completely by the used humanizeDuration
function. Would be pretty ugly either to show 0 years 0 months 0 weeks 6 days 13 hours 42 minutes 0 seconds
😄. Those are added on demand and as of the rounding to minutes that it done now, the seconds are omitted implicitly in every case. What I agree with, it could be beneficial to keep showing 0 minutes
, to make clear that minutes is the precision shown.
Here the documentation of the module: https://github.com/EvanHahn/HumanizeDuration.js
This could be tried:
((uptime = humanizeDuration(socketData.uptime * 60000, { units: ['y', 'mo', 'w', 'd', 'h', 'm'] })),
Leading zero units are not shown by this, but with some luck tailing ones are. Otherwise I do not see an option to define the minimum unit to show, respectively whether to show zero value units or not.
from dietpi-dashboard.
No, it doesn't look like trailing units are shown, even with that.
from dietpi-dashboard.
@echtfrank
Can this be closed then?
from dietpi-dashboard.
Hi, sorry for my late reaction. Yes, absolutely can this be closed. thanks for the background information.
I have other ideas for the dashboard. I am new to Github. What is the preferred method posting new ideas?
I don't want to open an 'issue' for an 'idea'...
from dietpi-dashboard.
Related Issues (20)
- Statistics does not show other mount points HOT 1
- Temperature reporting does not match HOT 28
- Dietpi Dashboard crash with all other services including ssh access HOT 13
- Having trouble uploading files through the file browser HOT 2
- Not a bug, but an idea of improvement about the scaling of the temperature graph HOT 1
- temp_unit missing quotes in default config.toml HOT 1
- [Feauture request] Add more info in empty space in right lover area HOT 1
- dietpi-dashboard.service: Failed with result 'signal'. HOT 16
- DietPi-Dashboard Logo
- RISC-V builds/support HOT 2
- Incorrect software documentation link: Homer HOT 1
- System crash when using file browser to view docker volumes directory HOT 23
- Possible replacements for JSON communication between frontend and backend HOT 4
- Fingerprint cookie breaks connecting to different nodes HOT 4
- Terminal characters not displaying correctly HOT 6
- unable exit htop in terminal window, leaving terminal window with it running crashes dashboard completely HOT 2
- Feature Request: External Temperature Sensors HOT 2
- CORS error when trying to access second node HOT 2
- Feature Request: Add support for fan status monitoring HOT 8
- Only complie ARMv6 for Raspberry Pi boards HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dietpi-dashboard.