Browse Source

start windows mod

tags/v0.2.0
Jonathan Strong 4 years ago
parent
commit
548cad568b
2 changed files with 6 additions and 2 deletions
  1. +5
    -2
      src/csv.rs
  2. +1
    -0
      src/windows.rs

+ 5
- 2
src/csv.rs View File

@@ -252,7 +252,10 @@ fn run(start: Instant, logger: &slog::Logger) -> Result<usize, String> {

if trade.ticker != t!(btc-usd) { continue }

if trade.time >= next_hour { // finalize last hour, and prepare for this hour
if trade.time >= next_hour {
// `trade` is past the last hour bucket, so finalize/write last
// hour results, and reset state for this hour

if n_bmex == 0 || n_gdax == 0 {
wtr.write_record(&[
&format!("{}", cur_hour),
@@ -334,7 +337,7 @@ fn run(start: Instant, logger: &slog::Logger) -> Result<usize, String> {
}
}

// intentionally skipping the partial hour here
// intentionally skipping handling the partial hour here
info!(logger, "finished parsing CSV/calculating query. closing output file");
drop(wtr);


+ 1
- 0
src/windows.rs View File

@@ -0,0 +1 @@
use std::collections::VecDeque;

Loading…
Cancel
Save