GithubHelp home page GithubHelp logo

Comments (3)

johan-bjareholt avatar johan-bjareholt commented on September 21, 2024 2

If i remember correctly our reason for setting the limit to 100 was so activitywatch wouldn't take up all CPU and disk usage by dumping the whole bucket if someone had run activitywatch for a long period of time. Now when i think of it it's kind of stupid, but still valid I guess. At least we should document it somewhere.

@ErikBjare Should we remove the default 100 event limit or keep it?

Instead of setting limit = 10**6 you can use limit = -1 to fetch all events.

By the way @nikanar, if you havn't seen it yet you can have a nice view of the REST api at localhost:5600/api, could be useful.

from aw-client.

ErikBjare avatar ErikBjare commented on September 21, 2024 1

The default limit is 100 by default for very reason that Johan explained.

That being said, it might be better to have 100 as the default argument in ´aw-client´ and make ´limit=None´ mean that ´limit=-1´ is passed to the API.

And again @nikanar, I can't thank you enough for the work you are doing here ❤️

from aw-client.

johan-bjareholt avatar johan-bjareholt commented on September 21, 2024 1

Fixed

aw-client: 4b11b94

aw-server: ActivityWatch/aw-server@3d841d9

from aw-client.

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.