Nope. It’s price weighted. Hence the comment on how dumb it is.
It's not fine since companies have varying counts of shares, nevermind the stock splits.
The proper solution is getSharePrice() * getShareCount(). Which is what most other indeces do.
Wait, you think this is a _coding_ issue?