that gauge is getting signal from injectors, how long they stay open plus throtle possition sensor tels where the throtle is, then it shows u aprox mpg.
its a joke really and i never believe that thing anyway.
it does give u an idea about how exonomical ur driving is at the moment but thats about it.