Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-665

forCurrentlyOutstandingWork progress listeners report total work instead of changes only

      If I register a forCurrentlyOutstandingWork listener the output currently looks something like this:

      1) Start with an empty database (uploaded = 0, uploadable = 0)
      2) Write 80 bytes (0, 80)
      3) Upload 80 bytes (80, 80)
      4) Write 20 bytes (80, 100)
      5) Register a forCurrentlyOutstandingWork Upload Listener.
      6) This will now report (80, 100) immediately, which indicate it is 80% done already.

      This doesn't seem consistent with the semantics the mode description. It would seem better to instead report (0, 20)

      This seems trivially adjustable sine we just need to remember the initial values of uploadable/downloadable value and subtract them from downloaded/uploaded values.

      Thoughts @austinzheng ?

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: