Greasy Fork - Analyze from posted scripts

Shows the total amount for each rating, total/daily installs, and scripts posted on any user profile and search pages.

< Opinie na Greasy Fork - Analyze from posted scripts

Pytanie/komentarz

parseInt(obj.total_installs, 10) is incorrect.

parseInt(..., 10) for "1,234" will become 1

please fix for all parseInt(..., 10)

hacker09Autor
§
Napisano: 14-07-2024
Edytowano: 14-07-2024

That's true, but after testing the code without parseInt https://pastebin.com/raw/iXWkQcSv I haven't seen any change.
My profile and yours still show a total of more than a thousand, I saw that I don't even need to use parseInt at all anywhere, but using it or not didn't change anything and all numbers remained the same, so I don't see a reason to remove parseInt, although it's needless.

Do you see a stats diff between the current version and the pastebin version?

obj.total_installs is never a string anyway, so since there isn't a "," anywhere, it calculates correctly using parseInt, or without using it.

hacker09Autor
§
Napisano: 14-07-2024

I could remove it just because it's needless and apparently the stats load 1 sec faster when I don't use parseInt.

Odpowiedz

Zaloguj się, by odpowiedzieć.