mirror of
https://github.com/vale981/yabar
synced 2025-03-05 17:41:40 -05:00
Use ya_block_error function in YABAR_DISKSPACE
This commit is contained in:
parent
8de12e95e8
commit
0e606d30b0
1 changed files with 2 additions and 6 deletions
|
@ -728,12 +728,8 @@ void ya_int_diskspace(ya_block_t *blk) {
|
||||||
}
|
}
|
||||||
endmntent(mntentfile);
|
endmntent(mntentfile);
|
||||||
if ( mntpntcount == -1 ) {
|
if ( mntpntcount == -1 ) {
|
||||||
fprintf(stderr, "no mount points found for prefix \"%s\"\n",
|
ya_block_error(blk, "no mount points found for prefix \"%s\"",
|
||||||
blk->internal->option[0]);
|
blk->internal->option[0]);
|
||||||
strncpy(blk->buf, "BLOCK ERROR!", strlen("BLOCK ERROR!"));
|
|
||||||
ya_draw_pango_text(blk);
|
|
||||||
pthread_detach(blk->thread);
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
}
|
||||||
uint64_t free, total;
|
uint64_t free, total;
|
||||||
struct statvfs stat;
|
struct statvfs stat;
|
||||||
|
|
Loading…
Add table
Reference in a new issue