Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

Commit

Permalink
fix to accomodate rust-lang/rust#31928
Browse files Browse the repository at this point in the history
  • Loading branch information
No-Jun Park committed Mar 2, 2016
1 parent 2841747 commit 06953eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sudo: required
language: rust
rust:
- nightly-2016-02-22
- nightly-2016-03-01
cache:
directories:
- $HOME/.cargo
Expand Down
3 changes: 2 additions & 1 deletion src/managed_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const RESTART_TIME_THRESHOLD: f64 = 5.0; // seconds

fn seconds_since_epoch() -> f64 {
let now = SystemTime::now();
now.duration_from_earlier(UNIX_EPOCH).unwrap().as_secs() as f64
//now.duration_from_earlier(UNIX_EPOCH).unwrap().as_secs() as f64
now.duration_since(UNIX_EPOCH).unwrap().as_secs() as f64
}

pub struct ManagedProcess {
Expand Down

0 comments on commit 06953eb

Please sign in to comment.