[Seaside] WAImageStatus uptime tracking

Sven Van Caekenberghe sven at beta9.be
Sat Mar 12 19:05:49 UTC 2011


I am using WAImageStatus and friends to check the health of my deployed images.

The uptime reported by WAImageStatus (a WAPharoStatusItem subclass) has been annoying me for some time: the value wraps around much too quickly, in the order of days it seems (and we all know Seaside/Smalltalk images keep running for much longer) (based on Time>>#millisecondClockValue, a primitive):

	upTime := Duration milliseconds: Time millisecondClockValue.

I made a simple helper class, WAUpTimeTracker, fileout attached, that I think would do a better job:

	upTime := WAUpTimeTracker imageUpTime.

The value is being set automatically at system startup.

Is this something worth including ?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: WAUpTimeTracker.st
Type: application/octet-stream
Size: 2027 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110312/ad187da5/WAUpTimeTracker.obj
-------------- next part --------------

More information about the seaside mailing list