mirror of
https://github.com/vale981/yabar
synced 2025-03-05 09:31:39 -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);
|
||||
if ( mntpntcount == -1 ) {
|
||||
fprintf(stderr, "no mount points found for prefix \"%s\"\n",
|
||||
blk->internal->option[0]);
|
||||
strncpy(blk->buf, "BLOCK ERROR!", strlen("BLOCK ERROR!"));
|
||||
ya_draw_pango_text(blk);
|
||||
pthread_detach(blk->thread);
|
||||
pthread_exit(NULL);
|
||||
ya_block_error(blk, "no mount points found for prefix \"%s\"",
|
||||
blk->internal->option[0]);
|
||||
}
|
||||
uint64_t free, total;
|
||||
struct statvfs stat;
|
||||
|
|
Loading…
Add table
Reference in a new issue