/******************************************************************************
* Icinga 2 *
- * Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org) *
+ * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/) *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
struct drive
{
std::wstring name;
- double cap, free;
+ double cap, free, used;
drive(std::wstring p)
: name(p)
{
threshold warn, crit;
std::vector<std::wstring> drives, exclude_drives;
Bunit unit;
+ BOOL showUsed;
};
static INT parseArguments(int, wchar_t **, boost::program_options::variables_map&, printInfoStruct&);
static INT printOutput(printInfoStruct&, std::vector<drive>&);
static INT check_drives(std::vector<drive>&, std::vector<std::wstring>&);
static INT check_drives(std::vector<drive>&, printInfoStruct&);
-static BOOL getFreeAndCap(drive&, const Bunit&);
+static BOOL getDriveSpaceValues(drive&, const Bunit&);
static bool checkName(const drive& d, const std::wstring& s);
-#endif /*CHECK_DISK_H*/
\ No newline at end of file
+#endif /*CHECK_DISK_H*/