mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
dft: handle different dft rates
This commit is contained in:
parent
a9dcc84969
commit
4611105e0a
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ public:
|
|||
bool runDft = false;
|
||||
if (syncDft) {
|
||||
struct timespec timeDiff = time_diff(&lastDftCal, &smp->ts.origin);
|
||||
if (timeDiff.tv_sec > 0)
|
||||
if ((timeDiff.tv_sec*1e9+timeDiff.tv_nsec) > (1e9/dftRate))
|
||||
runDft = true;
|
||||
|
||||
//if (lastDftCal.tv_sec != smp->ts.origin.tv_sec)
|
||||
|
|
Loading…
Add table
Reference in a new issue