Skip to content

Commit

Permalink
Fix timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Avgor46 committed Sep 15, 2023
1 parent b4065d7 commit 2990acc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions casr/src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ pub fn handle_crashes(
.build()
.unwrap();

info!("Analyzing {} files...", crashes.len());
if timeout != 0 {
info!("Timeout for target execution is {timeout} seconds");
}
// Generate CASR reports.
info!("Generating CASR reports...");
info!("Using {} threads", num_of_threads - 1);
Expand Down
4 changes: 0 additions & 4 deletions libcasr/src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ pub struct CrashReport {
)]
#[cfg_attr(feature = "serde", serde(default))]
pub package_description: String,
/// Timestamp.
#[cfg_attr(feature = "serde", serde(skip_deserializing))]
pub timestamp: i64,
/// Asan report.
#[cfg_attr(
feature = "serde",
Expand Down Expand Up @@ -235,7 +232,6 @@ impl CrashReport {
let mut report: CrashReport = Default::default();
let local: DateTime<Local> = Local::now();
report.date = local.to_rfc3339_opts(SecondsFormat::Micros, false);
report.timestamp = local.timestamp_nanos();
report
}

Expand Down

0 comments on commit 2990acc

Please sign in to comment.