Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final changes before 0.1.10 release #447

Merged
merged 3 commits into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgbase = autoclockspeed-bin
pkgdesc = A utility to check stats about your CPU, and auto regulate clock speeds to help with either performance or battery life.
pkgver = 0.1.9
pkgver = 0.1.10
pkgrel = 1
url = https://github.com/JakeRoggenbuck/auto-clock-speed
arch = x86_64
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "autoclockspeed"
version = "0.1.9"
version = "0.1.10"
edition = "2018"
license = "MIT"
description = "A utility to check stats about your CPU, and auto regulate clock speeds to help with either performance or battery life."
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This PKGBUILD was generated by `cargo aur`: https://crates.io/crates/cargo-aur

pkgname=autoclockspeed-bin
pkgver=0.1.9
pkgver=0.1.10
pkgrel=1
pkgdesc="A utility to check stats about your CPU, and auto regulate clock speeds to help with either performance or battery life."
url="https://github.com/JakeRoggenbuck/auto-clock-speed"
Expand Down
4 changes: 2 additions & 2 deletions src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ mod tests {
} else {
assert!(preprint.contains("Auto Clock Speed daemon has been initialized in \u{1b}[33mmonitor\u{1b}[0m mode with a delay of 1ms normally and 2ms when on battery"));
}
assert!(preprint.contains("Name Max\tMin\tFreq\tTemp\tUsage\tGovernor\n"));
assert!(preprint.contains("Name\tMax\tMin\tFreq\tTemp\tUsage\tGovernor\n"));
assert!(preprint.contains("Hz"));
assert!(preprint.contains("cpu"));
assert!(preprint.contains('C'));
Expand Down Expand Up @@ -816,7 +816,7 @@ mod tests {
let mut daemon = daemon_mutex.lock().unwrap();
let preprint = daemon.preprint_render();
assert!(preprint.contains("Auto Clock Speed daemon has been initialized in \u{1b}[33mmonitor\u{1b}[0m mode with a delay of 1ms normally and 2ms when on battery\n"));
assert!(preprint.contains("Name Max\tMin\tFreq\tTemp\tUsage\tGovernor\n"));
assert!(preprint.contains("Name\tMax\tMin\tFreq\tTemp\tUsage\tGovernor\n"));
assert!(preprint.contains("Hz"));
assert!(preprint.contains("cpu"));
assert!(preprint.contains('C'));
Expand Down
2 changes: 0 additions & 2 deletions src/network/hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pub fn hook(path: &'static str, c_daemon_mutex: Arc<Mutex<Daemon>>) {
}
};
let packet = Packet::Hello("sup!".to_string());
println!("(debug not for production) Sending out: {}", packet);
stream
.write_all((format!("{}", packet)).as_bytes())
.unwrap();
Expand All @@ -30,7 +29,6 @@ pub fn hook(path: &'static str, c_daemon_mutex: Arc<Mutex<Daemon>>) {
let mut reader = BufReader::new(&stream);
let mut line = String::new();
reader.read_line(&mut line).unwrap();
println!("(debug not for production) Response: {}", line);
stream.shutdown(std::net::Shutdown::Both).unwrap();
});
}