12 Mar
2012
12 Mar
'12
2:29 p.m.
[Lifted from SF tracker #3498715]
Attached is a trivial patch for the 'Status unchanged in' line displayed on the web page of individual services. The patch was produced against version 4.3.7 Xymon. Currently the 'status unchanged' line shows times like:
Status unchanged in 1 days,0 hours, 11 minutes
The patch puts a space after the first comma (,). It then only puts an 's' on the time if it is not '1'. So, the above becomes:
Status unchanged in 1 day, 0 hours, 11 minutes
(The patch is a little messy - using specific variables for the maths would be better.)
John.
-- John Horne Tel: +44 (0)1752 587287 Plymouth University, UK Fax: +44 (0)1752 587001