Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-1713

Optimization of measurement of disk-usage on Bitapplication filedir

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Minor
    • None
    • 3.7
    • Archive
    • None

    Description

      In the BitarchiveAdmin constructor we traverse each Bitapplication basedir to find out how many bytes we have spent using the following the two lines of code;
      final Long bytesUsedInDir = new Long(calculateBytesUsed(basedir));
      log.info("Using bit archive directory '" + basedir + "' with "
      + bytesUsedInDir + " bytes of content and "
      + FileUtils.getBytesFree(basedir) + " bytes free");
      After moving to Java 6 I suggest that we either don't bytesUsedInDir or
      calculate bytesUsedInDir as "basedir.getTotalSpace() - FileUtils.getBytesFree(basedir)"

      Attachments

        Activity

          People

            Unassigned Unassigned
            svc Søren Vejrup Carlsen (Inactive)
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified