This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- CLI option to monitor current fan speeds
- Fixed multi fan testing - Forced testing option recommendation - Fixed tests always reporting 0% completion before the real completion %, when monitoring an on-going test - Better status text alignment - Performance improvements by using from_chars rather than stou Signed-off-by: Hayden Briese <[email protected]>
- Loading branch information
Showing
13 changed files
with
151 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
fancon (0.23.4) focal; urgency=low | ||
fancon (0.23.5) focal; urgency=low | ||
|
||
* Initial release. Closes: #00000 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
#include "Args.hpp" | ||
|
||
fc::Arg::Arg(string name, string short_name, bool has_value, bool needs_value, | ||
string value, bool triggered) | ||
fc::Arg::Arg(string name, string short_name, bool potential_value, | ||
bool needs_value, string value, bool triggered) | ||
: key(move(name)), short_key(move(short_name)), value(move(value)), | ||
triggered(triggered), potential_value(has_value), | ||
triggered(triggered), potential_value(potential_value), | ||
needs_value(needs_value) {} | ||
|
||
bool fc::Arg::has_value() const { return !value.empty(); } | ||
|
||
fc::Arg::operator bool() const { return triggered; } | ||
|
||
map<string, string> fc::Args::short_to_key() const { | ||
map<string, string> short_to_key; | ||
for (const auto &[key, a] : from_key) { | ||
if (!a.short_key.empty()) | ||
short_to_key.insert_or_assign(a.short_key, a.key); | ||
} | ||
|
||
return short_to_key; | ||
} | ||
|
||
pair<string, fc::Arg &> fc::Args::a(Arg &arg) { return {arg.key, arg}; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.