Giter VIP home page Giter VIP logo

Comments (3)

MattLicense avatar MattLicense commented on May 1, 2024

This is a one-line add:

var interval = setInterval(refresh_all, 30000);

I've put it at the bottom of js/magic_happens_here.js to update every 30 seconds.

from linux-dash.

commonquail avatar commonquail commented on May 1, 2024

For a custom hack that's fine but I'd be wary of such an indiscriminate addition to the main line. More thought should be put into what needs updating when. The OS isn't going to change often and can be mostly static. System uptime should update with a granularity roughly equivalent to that of the displayed value (currently hourly). RAM usage, on the other hand, can change rapidly and should be frequently updated.
It is also possible to handle this on the back-end with caching but a combined approach is probably the most robust.

from linux-dash.

tariqbuilds avatar tariqbuilds commented on May 1, 2024

@commonquail hit the nail on the head. Refresh of stats will be automated in a future iteration but it will not be a universal refresh of all stats on the page; more likely a hybrid approach.

@slowmove - there will be a functional refresh button near the top of the page soon which will refresh all stats when clicked. Hope this at least meets your needs half-way. However, the project will not be adding a time-out-refresh functionality (e.g. refresh whole page every x seconds).

from linux-dash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.