Browse Source

Increased timeout to at least 1 minute

git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@7433 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/ethstream-1.1
nilm 14 years ago
parent
commit
5e7f4ac97e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      nerdjack.c

+ 2
- 2
nerdjack.c View File

@@ -243,10 +243,10 @@ nerd_data_stream (int data_fd, int numChannels, int *channel_list,
int numgroupsProcessed = 0;
long double volts;

//The timeout should be the expected time plus two seconds
//The timeout should be the expected time plus 60 seconds
//This permits slower speeds to work properly
unsigned int expectedtimeout =
(period * NERDJACK_NUM_SAMPLES / NERDJACK_CLOCK_RATE) + 2;
(period * NERDJACK_NUM_SAMPLES / NERDJACK_CLOCK_RATE) + 60;

//Check to see if we're trying to resume
//Don't blow away linesleft in that case


Loading…
Cancel
Save