public Integer getTrackerStreamCreatePercentage(final long now) {
        if (complete) {
            return 100;
        }

        if (minStreamCreateMs != null && streamCreateMs != null) {
            long max = now;
            if (lastPollMs != null) {
                max = lastPollMs;
            }
            if (maxStreamCreateMs != null) {
                max = maxStreamCreateMs;
            }

            final long windowSize = max - minStreamCreateMs;

            // If the window size is less than or equal to 0 then we are at 100%
            // for now.
            if (windowSize <= 0) {
                return 100;
            }

            final long trackerPos = Math.min(max, streamCreateMs);
            final long windowPos = Math.max(0, max - trackerPos);
            return ((int) ((100.0 * (windowSize - windowPos)) / windowSize));
        }

        return null;
    }
For UI use only to see current progress. Not used to influence task
creation.
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/StreamProcessorFilterTracker.java