mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 15:31:15 +00:00
performance-metrics: Rename git_committer_date to git_commit_date
The former implies a person rather than a thing. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
4cc44f8cc7
commit
8458696094
@ -41,7 +41,7 @@ pub struct PerformanceTestResult {
|
|||||||
pub struct MetricsReport {
|
pub struct MetricsReport {
|
||||||
pub git_human_readable: String,
|
pub git_human_readable: String,
|
||||||
pub git_revision: String,
|
pub git_revision: String,
|
||||||
pub git_committer_date: String,
|
pub git_commit_date: String,
|
||||||
pub date: String,
|
pub date: String,
|
||||||
pub results: Vec<PerformanceTestResult>,
|
pub results: Vec<PerformanceTestResult>,
|
||||||
}
|
}
|
||||||
@ -66,14 +66,14 @@ impl Default for MetricsReport {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut git_committer_date = "".to_string();
|
let mut git_commit_date = "".to_string();
|
||||||
if let Ok(git_out) = Command::new("git")
|
if let Ok(git_out) = Command::new("git")
|
||||||
.args(&["show", "-s", "--format=%cd"])
|
.args(&["show", "-s", "--format=%cd"])
|
||||||
.output()
|
.output()
|
||||||
{
|
{
|
||||||
if git_out.status.success() {
|
if git_out.status.success() {
|
||||||
if let Ok(git_out_str) = String::from_utf8(git_out.stdout) {
|
if let Ok(git_out_str) = String::from_utf8(git_out.stdout) {
|
||||||
git_committer_date = git_out_str.trim().to_string();
|
git_commit_date = git_out_str.trim().to_string();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ impl Default for MetricsReport {
|
|||||||
MetricsReport {
|
MetricsReport {
|
||||||
git_human_readable,
|
git_human_readable,
|
||||||
git_revision,
|
git_revision,
|
||||||
git_committer_date,
|
git_commit_date,
|
||||||
date: date(),
|
date: date(),
|
||||||
results: Vec::new(),
|
results: Vec::new(),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user