Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Ftruncate (0.16 sec)

  1. cmd/kubeadm/app/util/certs/util.go

    // the expected NotBefore. Truncate (round) expectedNotBefore to 1 second, since the certificate stores
    // with seconds as the maximum precision.
    func AssertCertificateHasNotBefore(t *testing.T, cert *x509.Certificate, expectedNotBefore time.Time) {
    	truncated := expectedNotBefore.Truncate(time.Second)
    	if !cert.NotBefore.Equal(truncated) {
    		t.Errorf("cert has NotBefore %v, expected %v", cert.NotBefore, truncated)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. pkg/kubelet/util/util_windows.go

    // GetBootTime returns the time at which the machine was started, truncated to the nearest second
    func GetBootTime() (time.Time, error) {
    	currentTime := time.Now()
    	output, _, err := tickCount.Call()
    	if errno, ok := err.(syscall.Errno); !ok || errno != 0 {
    		return time.Time{}, err
    	}
    	return currentTime.Add(-time.Duration(output) * time.Millisecond).Truncate(time.Second), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

            val start = nextOutFrame.start
            var truncated: Boolean
            var end: Long
            if (outFramesIterator.hasNext()) {
              nextOutFrame = outFramesIterator.next()
              end = nextOutFrame.start
              truncated = false
            } else {
              end = outBytes.size.toLong()
              truncated = nextOutFrame.truncated
            }
    
            // Write a frame.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize.mlir

    // CHECK: %[[fcast:.*]] = "tf.Cast"(%[[sc1]]) <{Truncate = false}> : (tensor<*xi8>) -> tensor<*xf32>
    // CHECK: %[[avgpool_f32:.*]] = "tf.AvgPool"(%[[fcast]])
    // CHECK-SAME: (tensor<*xf32>) -> tensor<*xf32>
    // CHECK: %[[round:.*]] = "tf.Round"(%[[avgpool_f32]])
    // CHECK: %[[icast:.*]] = "tf.Cast"(%[[round]]) <{Truncate = false}> : (tensor<*xf32>) -> tensor<*xi8>
    // CHECK: %[[sc2:.*]] = "quantfork.scast"(%[[icast]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:32:28 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.h

                                mlir::Builder builder);
    
    absl::StatusOr<mlir::ElementsAttr> ConvertIntBuffer(
        mlir::RankedTensorType shaped_type, const std::vector<uint8_t>& buffer,
        bool truncate = false);
    
    absl::StatusOr<mlir::ElementsAttr> ConvertFloatBuffer(
        mlir::RankedTensorType shaped_type, const std::vector<uint8_t>& buffer);
    
    tensorflow::TensorProto ConvertTfliteConstTensor(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/runtime/tracestring.go

    }
    
    // writeString writes the string to t.buf.
    //
    // Must run on the systemstack because it acquires t.lock.
    //
    //go:systemstack
    func (t *traceStringTable) writeString(gen uintptr, id uint64, s string) {
    	// Truncate the string if necessary.
    	if len(s) > maxTraceStringLen {
    		s = s[:maxTraceStringLen]
    	}
    
    	lock(&t.lock)
    	w := unsafeTraceWriter(gen, t.buf)
    
    	// Ensure we have a place to write to.
    	var flushed bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. docs/distributed/distributed-from-config-file.sh

    export MC_HOST_minio3=http://minr0otUS2r:pBU94AGAY85e@localhost:9003
    
    ./mc ready minio1
    ./mc ready minio3
    
    ./mc mb minio1/testbucket
    # copy large upload to newbucket on minio1
    truncate -s 17M lrgfile
    expected_checksum=$(cat ./lrgfile | md5sum)
    
    ./mc cp ./lrgfile minio1/testbucket
    
    actual_checksum=$(./mc cat minio3/testbucket/lrgfile | md5sum)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 18 18:19:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/PathAssembler.java

         * <p>
         * The algorithm in use by this method is as follows:
         * <ol>
         *    <li>Compute the MD5 value of the UTF-8 {@code string}.</li>
         *    <li>Truncate leading zeros (i.e., treat the MD5 value as a number).</li>
         *    <li>Convert to base 36 (the characters {@code 0-9a-z}).</li>
         * </ol>
         */
        @SuppressWarnings("StringCharset")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/DefaultTestLogging.java

        private boolean showStackTraces = true;
        private TestExceptionFormat exceptionFormat = TestExceptionFormat.FULL;
        private Set<TestStackTraceFilter> stackTraceFilters = EnumSet.of(TestStackTraceFilter.TRUNCATE);
    
        @Override
        public Set<TestLogEvent> getEvents() {
            return events;
        }
    
        @Override
        public void setEvents(Set<TestLogEvent> events) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 10:04:16 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/go/ast/commentmap.go

    		//       Just do it explicitly.
    		for _, comment := range group.List {
    			if buf.Len() >= maxLen {
    				break loop
    			}
    			buf.WriteString(comment.Text)
    		}
    	}
    
    	// truncate if too long
    	if buf.Len() > maxLen {
    		buf.Truncate(maxLen - 3)
    		buf.WriteString("...")
    	}
    
    	// replace any invisibles with blanks
    	bytes := buf.Bytes()
    	for i, b := range bytes {
    		switch b {
    		case '\t', '\n', '\r':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top