Mercurial > servermonitor
changeset 31:88ca7e4fc023
Allow running a file check on a directory.
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Sun, 16 Jun 2019 16:54:46 -0400 |
parents | b0af6b4bed4d |
children | 2342e9459444 |
files | ServerMonitor/Objects/Checks/FileCheck.cs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ServerMonitor/Objects/Checks/FileCheck.cs Sun Jun 16 16:54:29 2019 -0400 +++ b/ServerMonitor/Objects/Checks/FileCheck.cs Sun Jun 16 16:54:46 2019 -0400 @@ -23,7 +23,7 @@ int timeZoneOffset = TimeZoneInfo.Local.GetUtcOffset(DateTime.Now).Hours * -1; // Set the date format to long-iso since it's easy to parse. // Set the time zone to the match the client time zone so comparisons are reliable. - return "export TIME_STYLE=long-iso; export TZ=UTC" + timeZoneOffset + "; ls -l \"{0}\""; + return "export TIME_STYLE=long-iso; export TZ=UTC" + timeZoneOffset + "; ls -ld \"{0}\""; } }