{
// No info: Creating a faked entry distributing the
// total package size in assumed 200 files to "/ZYPP_NO_DU_INFO"
- // The reported size is in kB.
+ // The reported size are 1K blocks.
//
// Note: Less likely that some system has a mountpoint named
// ZYPP_NO_DU_INFO, so the size will be accounted to '/'.
// but adding a faked mountpoint entry an application is able
// to spot and handle these faked data in a different manner.
- _diskusage->add( "/ZYPP_NO_DU_INFO", size() / 1024, 200 );
+ unsigned dusize = size().blocks( ByteCount::K );
+ _diskusage->add( "/", dusize, 200 );
+ _diskusage->add( "/ZYPP_NO_DU_INFO/", dusize, 200 );
}
}
return *_diskusage;
{
// No info: Creating a faked entry distributing the
// total source package size in assumed 20 files to "/usr/src/packages"
- // The reported size is in kB
- _diskusage->add( "/usr/src/packages", size() / 1024, 20 );
+ // The reported size are 1K blocks.
+ unsigned dusize = size().blocks( ByteCount::K );
+ _diskusage->add( "/", dusize, 20 );
+ _diskusage->add( "/usr/", dusize, 20 );
+ _diskusage->add( "/usr/src/", dusize, 20 );
+ _diskusage->add( "/usr/src/packages/", dusize, 20 );
}
}
return *_diskusage;