mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
Fix progress variable type in sample code
This commit is contained in:
@@ -14,10 +14,10 @@ int main() {
|
||||
std::vector<indicators::FontStyle>{indicators::FontStyle::bold}}};
|
||||
|
||||
// Update bar state
|
||||
auto progress = 0.0f;
|
||||
size_t progress = 0;
|
||||
while (true) {
|
||||
bar.set_progress(progress);
|
||||
progress += 1;
|
||||
progress++;
|
||||
if (bar.is_completed())
|
||||
break;
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||
|
||||
Reference in New Issue
Block a user