Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for occurredInLastHours (0.21 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvents.java

            });
    
            // User likely doesn't care about daemons that stopped a long time ago
            for (DaemonStopEvent event : sortedEvents) {
                Long pid = event.getPid();
                if (event.occurredInLastHours(RECENTLY) && !uniqueStoppedPids.contains(pid)) {
                    // We can only determine if two DaemonStopEvent point at the same daemon if we know the PIDs
                    if (pid != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvent.java

            return "DaemonStopEvent{"
                + "timestamp=" + timestamp
                + ", pid=" + pid
                + ", status=" + status
                + "}";
        }
    
        boolean occurredInLastHours(final int numHours) {
            Calendar cal = Calendar.getInstance();
            cal.setTime(new Date(System.currentTimeMillis()));
            cal.add(Calendar.HOUR_OF_DAY, -1 * numHours);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top