Module: check_mk
Branch: master
Commit: a75ecbdfb753097e8c2e1ff3ccbd252857cea9e4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a75ecbdfb75309…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 25 19:29:56 2011 +0100
Windows agent: new section systemtime
---
agents/windows/check_mk_agent.cc | 8 ++++----
agents/windows/check_mk_agent.exe | Bin 95232 -> 95744 bytes
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/agents/windows/check_mk_agent.cc b/agents/windows/check_mk_agent.cc
index f2c0625..2a576b4 100755
--- a/agents/windows/check_mk_agent.cc
+++ b/agents/windows/check_mk_agent.cc
@@ -232,10 +232,10 @@ void section_uptime(SOCKET &out)
}
-void section_localtime(SOCKET &out)
+void section_systemtime(SOCKET &out)
{
- output(out, "<<<localtime>>>\n");
- sprintf(out, "%ld\n", time(0));
+ output(out, "<<<systemtime>>>\n");
+ output(out, "%ld\n", time(0));
}
@@ -1119,7 +1119,7 @@ void output_data(SOCKET &out)
section_eventlog(out);
section_plugins(out);
section_local(out);
- section_localtime(out);
+ section_systemtime(out);
}
diff --git a/agents/windows/check_mk_agent.exe b/agents/windows/check_mk_agent.exe
index 81a3c6a..056f40d 100755
Binary files a/agents/windows/check_mk_agent.exe and b/agents/windows/check_mk_agent.exe
differ