| 67 | } |
| 68 | |
| 69 | void SpeedGraph::SetSpeed(uint64_t speed) |
| 70 | { |
| 71 | //too large, maybe nan, we just return |
| 72 | if (speed >= 1024ull * 1024 * 1024 * 1024) |
| 73 | return; |
| 74 | |
| 75 | if (m_currentMax < speed) |
| 76 | { |
| 77 | resizeGraphPoint(static_cast<float>(m_currentMax) / speed); |
| 78 | m_currentMax = speed; |
| 79 | } |
| 80 | makeAnimation(m_graphSize.Height * (1.0f - static_cast<float>(speed) / m_currentMax)); |
| 81 | } |
| 82 | |
| 83 | void SpeedGraph::SetSpeed(double percent, uint64_t speed) |
| 84 | { |
no test coverage detected