whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Ensure output unchanged if there has been no change
Date Thu, 07 Apr 2016 17:16:06 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  4051465   Ensure output unchanged if there has been no change
4051465 is described below

commit 40514651ce1702eda6fdfd920e23fd54bbb1fbc2
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Apr 7 18:15:58 2016 +0100

    Ensure output unchanged if there has been no change
---
 www/status/monitors/secmail.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/status/monitors/secmail.rb b/www/status/monitors/secmail.rb
index 2ef9e73..0e3f9e5 100644
--- a/www/status/monitors/secmail.rb
+++ b/www/status/monitors/secmail.rb
@@ -2,10 +2,12 @@
 # Monitor status of secretarial mail
 #
 
+require 'time'
+
 def Monitor.secmail(previous_status)
   log = '/srv/mail/procmail.log'
 
-  {mtime: File.mtime(log)}
+{mtime: File.mtime(log).gmtime.iso8601, level: 'success'} # to agree with normalise
 end
 
 # for debugging purposes

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message