[Xymon] Patch to correct status unchanged time formatting

John Horne john.horne at plymouth.ac.uk
Mon Mar 12 15:29:53 CET 2012


[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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svcstatus.c-patch
Type: text/x-patch
Size: 941 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120312/ea0a1462/attachment.bin>


More information about the Xymon mailing list