fix float calc:
divide large number. not multiply a small.
This commit is contained in:
@@ -37,7 +37,7 @@ public:
|
||||
}
|
||||
|
||||
void set_max_time(double samplerate, uint32_t period_size) {
|
||||
m_max_time_us = (1e6 / samplerate) * period_size;
|
||||
m_max_time_us = period_size * 1e6 / samplerate;
|
||||
}
|
||||
|
||||
void set_max_time_us(uint64_t max_time_us) {
|
||||
|
||||
Reference in New Issue
Block a user