The diskusage is in kilobytes anyway, but this should make things
more future proof.
duc[3].path = "/etc";
transaction_calc_duchanges(trans, duc, 4);
for (i = 0; i < 4; i++)
- printf("duchanges %s: %d K %d inodes\n", duc[i].path, duc[i].kbytes, duc[i].files);
+ printf("duchanges %s: %lld K %lld inodes\n", duc[i].path, duc[i].kbytes, duc[i].files);
}
#endif
{
if (MAPTST(installedmap, sp))
continue;
- if (ignoredu.map && MAPTST(&ignoredu, sp - oldinstalled->start))
+ if (ignoredu.size && MAPTST(&ignoredu, sp - oldinstalled->start))
continue;
repo_search(oldinstalled, sp, SOLVABLE_DISKUSAGE, 0, 0, solver_fill_DU_cb, &cbd);
}
typedef struct _DUChanges {
const char *path;
- int kbytes;
- int files;
+ long long kbytes;
+ long long files;
int flags;
} DUChanges;