equal
deleted
inserted
replaced
332 } |
332 } |
333 |
333 |
334 private void dumpMemoryToDestination(PlatformRecording recording) { |
334 private void dumpMemoryToDestination(PlatformRecording recording) { |
335 WriteableUserPath dest = recording.getDestination(); |
335 WriteableUserPath dest = recording.getDestination(); |
336 if (dest != null) { |
336 if (dest != null) { |
337 MetadataRepository.getInstance().setOutput(dest.getText()); |
337 MetadataRepository.getInstance().setOutput(dest.getRealPathText()); |
338 recording.clearDestination(); |
338 recording.clearDestination(); |
339 } |
339 } |
340 } |
340 } |
341 private void disableEvents() { |
341 private void disableEvents() { |
342 MetadataRepository.getInstance().disableEvents(); |
342 MetadataRepository.getInstance().disableEvents(); |
435 for (PlatformRecording r : getRecordings()) { |
435 for (PlatformRecording r : getRecordings()) { |
436 if (r.getState() == RecordingState.RUNNING && r.shouldWriteMetadataEvent()) { |
436 if (r.getState() == RecordingState.RUNNING && r.shouldWriteMetadataEvent()) { |
437 event.id = r.getId(); |
437 event.id = r.getId(); |
438 event.name = r.getName(); |
438 event.name = r.getName(); |
439 WriteableUserPath p = r.getDestination(); |
439 WriteableUserPath p = r.getDestination(); |
440 event.destination = p == null ? null : p.getText(); |
440 event.destination = p == null ? null : p.getRealPathText(); |
441 Duration d = r.getDuration(); |
441 Duration d = r.getDuration(); |
442 event.recordingDuration = d == null ? Long.MAX_VALUE : d.toMillis(); |
442 event.recordingDuration = d == null ? Long.MAX_VALUE : d.toMillis(); |
443 Duration age = r.getMaxAge(); |
443 Duration age = r.getMaxAge(); |
444 event.maxAge = age == null ? Long.MAX_VALUE : age.toMillis(); |
444 event.maxAge = age == null ? Long.MAX_VALUE : age.toMillis(); |
445 Long size = r.getMaxSize(); |
445 Long size = r.getMaxSize(); |