Re: How are mouse movement statistics calcalutated?

Rob Caelers <[email protected]>
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
> The statistics window shows Mouse movement: 355.66m and Effective mouse
> movement: 180.07m.

> double mm = (double) pixels * gdk_screen_width_mm() / gdk_screen_widt();
> sprintf(buf, "%.02f m", mm/1000);

Yes. This is the code that performs the calculation.

> But still I don't know how to get from 1346876 pixels to 355.66 meters.

My screen is 37cm and 1280 pixels in width so approximately 0.289 mm per 
pixels (370 / 1280). 1346876 * 0.289 = 389331.34375 mm or 369 m. Your screen 
is probably smaller than 19" :-)

Groetjes,
   Rob

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.