mirror of
https://github.com/xboot/xfel.git
synced 2024-11-26 19:23:28 +08:00
[progress]update progress
This commit is contained in:
parent
2aaa8f6b89
commit
977c650f97
@ -33,7 +33,7 @@ static char * ssize(char * buf, double size)
|
||||
return buf;
|
||||
}
|
||||
|
||||
void progress_start(struct progress_t * p, size_t total)
|
||||
void progress_start(struct progress_t * p, uint64_t total)
|
||||
{
|
||||
if(p && (total > 0))
|
||||
{
|
||||
@ -43,7 +43,7 @@ void progress_start(struct progress_t * p, size_t total)
|
||||
}
|
||||
}
|
||||
|
||||
void progress_update(struct progress_t * p, size_t bytes)
|
||||
void progress_update(struct progress_t * p, uint64_t bytes)
|
||||
{
|
||||
char buf1[32], buf2[32];
|
||||
|
||||
|
@ -8,13 +8,13 @@ extern "C" {
|
||||
#include <x.h>
|
||||
|
||||
struct progress_t {
|
||||
size_t total;
|
||||
size_t done;
|
||||
uint64_t total;
|
||||
uint64_t done;
|
||||
double start;
|
||||
};
|
||||
|
||||
void progress_start(struct progress_t * p, size_t total);
|
||||
void progress_update(struct progress_t * p, size_t bytes);
|
||||
void progress_start(struct progress_t * p, uint64_t total);
|
||||
void progress_update(struct progress_t * p, uint64_t bytes);
|
||||
void progress_stop(struct progress_t * p);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Loading…
Reference in New Issue
Block a user