mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
auto
This commit is contained in:
parent
5cffe67790
commit
14db4b49aa
@ -103,11 +103,8 @@ int main(int argc, char **argv)
|
||||
void *buf1 = NULL, *buf2 = NULL;
|
||||
struct pagestuff *pages, *p;
|
||||
unsigned char c[16];
|
||||
char *test;
|
||||
time_t last_printed = 0;
|
||||
|
||||
printf("strchr: %p\n", strchr);
|
||||
|
||||
RC4_KEY writedata;
|
||||
RC4_set_key(&writedata, 16, bcache_magic);
|
||||
|
||||
@ -138,8 +135,6 @@ int main(int argc, char **argv)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
test = strchr(argv[i], ':');
|
||||
|
||||
fd1 = open(argv[i], (destructive ? O_RDWR : O_RDONLY)|direct);
|
||||
if (!csum)
|
||||
fd2 = open(argv[i + 1], (destructive ? O_RDWR : O_RDONLY)|direct);
|
||||
@ -176,7 +171,7 @@ int main(int argc, char **argv)
|
||||
|
||||
if (!verbose) {
|
||||
time_t now = time(NULL);
|
||||
if (now - last_printed >= 5) {
|
||||
if (now - last_printed >= 2) {
|
||||
last_printed = now;
|
||||
goto print;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user