Skip to content
Snippets Groups Projects
  1. Feb 02, 2022
  2. Jan 27, 2022
    • Benjamin Berg's avatar
      history: Remove unused and bogus define · dd3d63b2
      Benjamin Berg authored
      dd3d63b2
    • Benjamin Berg's avatar
      history: Delay saving history even on low power · d113f627
      Benjamin Berg authored
      Otherwise we flush out the data much more often than needed. With this
      change, we'll also wait up to 5 seconds even on lower power. Loosing 5s
      of data shouldn't be too bad, and it may prevent additional disk writes.
      
      But, more importantly, we need to deferre writing the data to a later
      main loop iteration. If we did not do this, then we have an
      write-amplification scenario where the history is written at least 4
      times instead of once.
      
      Closes: #150
      d113f627
    • Benjamin Berg's avatar
      linux: Make test compatible with older dbusmock versions · 94af9d6f
      Benjamin Berg authored
      The changes from 37b6d4b0 ("linux: Fix Bluetooth tests for
      python-dbusmock changes") require a not-yet-released dbusmock version.
      Simply catch the error and fall back to adding the properties in order
      to be compatible with both old and new dbusmock versions of the bluez
      service.
      94af9d6f
  3. Jan 25, 2022
    • Benjamin Berg's avatar
      history: Fix time compression of data points · 50bdbe7e
      Benjamin Berg authored and Benjamin Berg's avatar Benjamin Berg committed
      The algorithm tries to use floating point timestamps. However, the
      precision of floating point is too low for unix time, causing rounding
      issues. This can cause extra points to be inserted (or too few) under
      some conditions, creating a scenario where the test-suite fails
      randomly.
      
      Do this properly by using 64bit integers for the time. The 64bit integer
      should have enough head-room even for very long histories.
      
      Closes: #167
      50bdbe7e
  4. Jan 24, 2022
  5. Jan 23, 2022
  6. Jan 21, 2022
  7. Jan 18, 2022
  8. Nov 02, 2021
  9. Sep 17, 2021
  10. Sep 13, 2021
  11. Sep 11, 2021
  12. Sep 07, 2021
Loading