Currently the glance state is calculated using a relaxation time, which (for the sake of argument) is 60 minutes.
If nobody's glanced within 60 minutes, the glance state is 0.
If someone's glanced within 60 minutes, but not as recently as the "recent" time, the glance state is 1. The "recent" time is the relationation time to the power of 0.7 (the square root seemed to small). ie, 3600 * 0.7 seconds.
If someone's glanced recently (within the "recent" time), the glance state is 2.
If someone's glanced within the "extremely recent" time (this is 3600 ** 0.7 ** 0.7, or the "recent" time to the power of 0.7), then the glance state is 3.
If everyone has glanced within the "extremely recent" time then the glance state is 4.
The relaxation time should be fairly long because glancing isn't abrupt. The effect of a friendly room is felt for far longer than five minutes or so.
2003-09-14