Module: check_mk
Branch: master
Commit: 80af8db3b1fc9af116cf3e5c207df544fbe011cc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=80af8db3b1fc9a…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Thu Nov 16 11:43:52 2017 +0100
Windows agent: output percent sign in section df
The percent sign was accidentally dropped from used disc space in 1.4.0
as part of the huge refactoring
c5ee818358e695b01c2f2dbc05ad0713723a37f8. Even if no checks were broken
due to this, let us add it back for the sake of consistency as all other
hosts (Linux etc.) also have the percent sign in their df output.
Change-Id: I70a35ed20bee44ad1198ad81eca615869c06543b
---
agents/windows/build_version | 2 +-
agents/windows/sections/SectionDF.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/agents/windows/build_version b/agents/windows/build_version
index 4efbdd4..13de30f 100644
--- a/agents/windows/build_version
+++ b/agents/windows/build_version
@@ -1 +1 @@
-2998
+3000
diff --git a/agents/windows/sections/SectionDF.cc b/agents/windows/sections/SectionDF.cc
index 26afeb5..dbbaded 100644
--- a/agents/windows/sections/SectionDF.cc
+++ b/agents/windows/sections/SectionDF.cc
@@ -70,7 +70,7 @@ void SectionDF::output_filesystem(std::ostream &out, char *volid) {
out << volume << "\t" << fsname <<
"\t" << (total.QuadPart / KiloByte)
<< "\t" << (total.QuadPart - free_avail.QuadPart) /
KiloByte << "\t"
<< (free_avail.QuadPart / KiloByte) << "\t" <<
std::fixed
- << std::setprecision(0) << perc_used << "\t"
<< volid << "\n";
+ << std::setprecision(0) << perc_used << "%\t"
<< volid << "\n";
}
}