Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Ledger shows negative percentage #11370

Closed
srirambv opened this issue Oct 8, 2017 · 9 comments
Closed

Ledger shows negative percentage #11370

srirambv opened this issue Oct 8, 2017 · 9 comments

Comments

@srirambv
Copy link
Collaborator

srirambv commented Oct 8, 2017

Description

Ledger shows negative payments

Steps to Reproduce

  1. Upgrade to 0.19.35
  2. Have three publishers pinned
  3. One at 90%, second at 4%, third at 4%
  4. Have one publisher enabled, set at 2% completing 100%
  5. Use browser normally for a while
  6. Open payments
  7. One of the pinned publisher with 4% is unpinned but still enabled
  8. Unpinning one of the two publishers causes new disabled publisher to show up in negative % by auto enabling itself
    Actual result:

image

Expected result:
Calculations should not change for publisher

Reproduces how often: [What percentage of the time does it reproduce?]
Seen once

Brave Version

about:brave info:

Brave 0.19.35
rev eda2732
Muon 4.4.25

Reproducible on current live release:

N/A

Additional Information

#11369 #10534
cc: @mrose17

@srirambv srirambv added bug feature/rewards priority/P1 Blocks development or testing. Product cannot run. Must be fixed immediately, shipped next release. release/blocking labels Oct 8, 2017
@srirambv srirambv added this to the 0.19.x (Beta Channel) milestone Oct 8, 2017
@NejcZdovc NejcZdovc removed priority/P1 Blocks development or testing. Product cannot run. Must be fixed immediately, shipped next release. release/blocking labels Oct 9, 2017
@NejcZdovc
Copy link
Contributor

tried to reproduce it, but without success

@NejcZdovc NejcZdovc removed this from the 0.19.x (Beta Channel) milestone Oct 9, 2017
@luixxiul luixxiul added the needs-STR This bug needs steps to reproduce. label Oct 9, 2017
@srirambv srirambv removed the needs-STR This bug needs steps to reproduce. label Oct 13, 2017
@mrose17
Copy link
Member

mrose17 commented Oct 19, 2017

technically, this is a negative percentage, not a negative payment. there is probably something wrong in the percentage normalization code. seems to me that there could be an additional pass to set percentages<0 to 0.

@bsclifton bsclifton added this to the Triage Backlog milestone Nov 27, 2017
@diracdeltas
Copy link
Member

also happening for me with 0 publishers pinned

@luixxiul
Copy link
Contributor

I am not quite sure at all but is this issue related? #6944

@NejcZdovc NejcZdovc changed the title Ledger shows negative payments Ledger shows negative percentage Apr 4, 2018
@NejcZdovc
Copy link
Contributor

I tried to reproduce it again, but without any success. @srirambv can you please try again on the latest master. Thank you

@NejcZdovc NejcZdovc added the needs-info Another team member needs information from the PR/issue opener. label Apr 4, 2018
@NejcZdovc NejcZdovc removed their assignment Apr 10, 2018
@NejcZdovc
Copy link
Contributor

if there is negative % let's save it into the memo (remove publisher keys, rename to Publisher 1, Publisher 2, etc). We need to save before and after data

@NejcZdovc NejcZdovc removed the needs-info Another team member needs information from the PR/issue opener. label Apr 17, 2018
@diracdeltas
Copy link
Member

I am seeing this in latest release.

the site is muramatsu-america.com, it has 6 views and 59s of time, and it shows percentage -1.

i have 4 pinned sites and i've manually excluded some sites.

@ryanml
Copy link
Contributor

ryanml commented May 8, 2018

@diracdeltas I'll take another stab at repro and fixing this issue

@NejcZdovc
Copy link
Contributor

@diracdeltas do you still have this in your table?

@bsclifton bsclifton removed this from the Triage Backlog milestone Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants