Mercurial > servermonitor
diff ServerMonitor/Objects/CheckResult.cs @ 2:453ecc1ed9ea
Disk space check
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Sun, 06 Jan 2019 20:49:08 -0500 |
parents | 3e1a2131f897 |
children | 96f0b028176d |
line wrap: on
line diff
--- a/ServerMonitor/Objects/CheckResult.cs Tue Jan 01 21:14:47 2019 -0500 +++ b/ServerMonitor/Objects/CheckResult.cs Sun Jan 06 20:49:08 2019 -0500 @@ -32,7 +32,7 @@ StartTime.ToString(dateFormat).Replace("T", " "), EndTime.ToString(dateFormat).Replace("T", " "), CheckStatus, - Message.Replace("\r\n", "\n").Replace('\r', '\n').Replace("\n", "\\n")); + Message.ConvertNewlines().Replace("\n", "\\n")); } public static CheckResult FromLogString(Check check, string logString)