/
githubmirror
/
nvme-cli
Обзор
Документация
Войти
/
githubmirror
/
nvme-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/progress-util.h
18 строк
480 B
Daniel Wagner
shared: move temperature/timestamp/spinner helpers out of util/types.c
07 авг 2026, 16:15
07 авг 2026, 16:15
5d56a60
Код
Авторство
О чём код?
/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of nvme-cli. */ #pragma once #include <stdio.h> /* * Print a progress spinner to stream, e.g. for label "LogDump" and * percent 0.5: * * LogDump [========================- ] 50% * * percent is clamped to [0, 1.0]. Intended to be called repeatedly (each * call overwrites the previous line via '\r'). */ void shr_spinner(const char *label, float percent, FILE *stream);