MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / SetSpeed

Method SetSpeed

FastCopy/SpeedGraph.xaml.cpp:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

ShowGraphButton_ClickMethod · 0.80

Calls 2

SizeMethod · 0.80
dataMethod · 0.80

Tested by

no test coverage detected