|
@@ -56,15 +56,15 @@ void MainClass::main()
|
56
|
56
|
void MainClass::maySend()
|
57
|
57
|
{
|
58
|
58
|
auto time = getTime();
|
59
|
|
- if (time - m_lastTime < 100)
|
60
|
|
- usleep(100 - (time - m_lastTime));
|
|
59
|
+ if (time - m_lastTime < m_interval)
|
|
60
|
+ usleep(m_interval - (time - m_lastTime));
|
61
|
61
|
m_lastTime = getTime();
|
62
|
62
|
auto values = m_input->readAndSend(time);
|
63
|
63
|
if (m_verbose)
|
64
|
64
|
{
|
65
|
65
|
std::cout << time << ":";
|
66
|
66
|
foreach (auto value, values) {
|
67
|
|
- std::cout << " " << value .first.toInt() << ":" << value.second.toInt();
|
|
67
|
+ std::cout << " " << value .first.toLongLong() << ":" << value.second.toInt();
|
68
|
68
|
}
|
69
|
69
|
std::cout << std::endl;
|
70
|
70
|
}
|