Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 391 for stdat (0.05 sec)

  1. src/os/stat_unix.go

    package os
    
    import (
    	"syscall"
    )
    
    // Stat returns the [FileInfo] structure describing file.
    // If there is an error, it will be of type [*PathError].
    func (f *File) Stat() (FileInfo, error) {
    	if f == nil {
    		return nil, ErrInvalid
    	}
    	var fs fileStat
    	err := f.pfd.Fstat(&fs.sys)
    	if err != nil {
    		return nil, f.wrapErr("stat", err)
    	}
    	fillFileStatFromSys(&fs, f.name)
    	return &fs, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:38:03 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. docs/site-replication/run-sse-kms-object-replication.sh

    if [ "${repcount4}" -ne 1 ]; then
    	echo "BUG: object test-bucket/custpartsize not replicated"
    	exit_1
    fi
    
    # Stat the objects from source site
    echo "Stat minio1/test-bucket/encrypted"
    ./mc stat minio1/test-bucket/encrypted --insecure --json
    stat_out1=$(./mc stat minio1/test-bucket/encrypted --insecure --json)
    src_obj1_algo=$(echo "${stat_out1}" | jq '.metadata."X-Amz-Server-Side-Encryption"')
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 18 18:19:01 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/AbstractFileSystemAccessTest.groovy

            void allowHashing(boolean allowed) {
                this.hashingAllowed = allowed
            }
        }
    
        static class AllowingStat implements Stat {
    
            private final Stat delegate
            private boolean statAllowed
    
            AllowingStat(Stat delegate) {
                this.delegate = delegate
            }
    
            @Override
            int getUnixMode(File f) throws FileException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:55 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/GenericFileSystem.java

            try {
                return stat.getUnixMode(f);
            } catch (Exception e) {
                throw new FileException(String.format("Could not get file mode for '%s'.", f), e);
            }
        }
    
        @Override
        public FileMetadata stat(File f) throws FileException {
            statisticsCollector.reportFileStated();
            return metadata.stat(f);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. internal/disk/stat_test.go

    	"testing"
    )
    
    func TestReadDriveStats(t *testing.T) {
    	if runtime.GOOS == "windows" {
    		t.Skip("skipping this test in windows")
    	}
    	testCases := []struct {
    		stat            string
    		expectedIOStats IOStats
    		expectErr       bool
    	}{
    		{
    			stat: "1432553   420084 66247626  2398227  7077314  8720147 157049224  7469810        0  7580552  9869354    46037        0 41695120     1315        0        0",
    			expectedIOStats: IOStats{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/cmd/gotraceeventstats/main.go

    	for i := range stats {
    		stat := &stats[i]
    		name := ""
    		if int(stat.typ) >= len(specs) {
    			name = fmt.Sprintf("<unknown (%d)>", stat.typ)
    		} else {
    			name = specs[stat.typ].Name
    		}
    		bytesPct := float64(stat.bytes) / float64(cr.bytesRead) * 100
    		countPct := float64(stat.count) / float64(eventsRead) * 100
    		fmt.Fprintf(w, "%s\t%d\t%.2f%%\t%d\t%.2f%%\n", name, stat.bytes, bytesPct, stat.count, countPct)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. cmd/metrics-v3-system-process.go

    )
    
    func loadProcStatMetrics(ctx context.Context, stat procfs.ProcStat, m MetricValues) {
    	if stat.CPUTime() > 0 {
    		m.Set(processCPUTotalSeconds, float64(stat.CPUTime()))
    	}
    
    	if stat.ResidentMemory() > 0 {
    		m.Set(processResidentMemoryBytes, float64(stat.ResidentMemory()))
    	}
    
    	if stat.VirtualMemory() > 0 {
    		m.Set(processVirtualMemoryBytes, float64(stat.VirtualMemory()))
    	}
    
    	startTime, err := stat.StartTime()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 26 16:07:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonRegistryStateProbe.groovy

            if (OperatingSystem.current().isLinux() || OperatingSystem.current().isMacOsX()) {
                def stat = NativeServicesTestFixture.instance.get(Stat)
                assert stat.getUnixMode(registryFile) == 0600 // user read-write
                assert stat.getUnixMode(registryFile.parentFile) == 0700 // user read-write-execute
            }
        }
    
        @Override
        State getCurrentState() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. pkg/kubelet/stats/cri_stats_provider_windows_test.go

    	eps := hcsshim.HNSEndpointStats{}
    	for _, c := range s.containers {
    		for _, stat := range c.hcsStats {
    			if endpointName == stat.InstanceId {
    				eps = hcsshim.HNSEndpointStats{
    					EndpointID:      stat.EndpointId,
    					BytesSent:       stat.BytesSent,
    					BytesReceived:   stat.BytesReceived,
    					PacketsReceived: stat.PacketsReceived,
    					PacketsSent:     stat.PacketsSent,
    				}
    			}
    		}
    	}
    
    	return &eps, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 17 00:02:10 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. cmd/is-dir-empty_linux.go

    		entries, err := readDirN(dirname, 1)
    		if err != nil {
    			return false
    		}
    		return len(entries) == 0
    	}
    	var stat syscall.Stat_t
    	if err := syscall.Stat(dirname, &stat); err != nil {
    		return false
    	}
    	return stat.Mode&syscall.S_IFMT == syscall.S_IFDIR && stat.Nlink == 2
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 05 15:17:08 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top