Previously when holding shift while hovering yourself/other player, ilvl would calculate ranged/offhand slot
As well, if an item was not-equipped, your ilvl would go up because it did not add +1 item (therefor dividing by 1 less)
Issue still remains with inaccurate display, best guess is that it's from an error grabbing item data? Could be worth looking into, issue existed before I touched it: only changed the calculation itself.
Example: I try and look at someone iLvl by holding shift on them, tooltip says "97", I whisper to ask and they are 130, seems to only work half the time? I will look further when i have more time.