You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2016/04/07 19:16:06 UTC
[whimsy] branch master updated: Ensure output unchanged if there
has been no change
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 <se...@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" <co...@whimsical.apache.org>'].