Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 136 for Ftruncate (0.21 sec)

  1. pkg/controller/job/backoff_utils_test.go

    			wantDuration:   700 * time.Second,
    		},
    	}
    
    	for name, tc := range testCases {
    		t.Run(name, func(t *testing.T) {
    			fakeClock := clocktesting.NewFakeClock(tc.currentTime.Truncate(time.Second))
    			d := tc.backoffRecord.getRemainingTime(fakeClock, tc.defaultBackoff, tc.maxBackoff)
    			if d.Seconds() != tc.wantDuration.Seconds() {
    				t.Errorf("Expected value of duration %v; got %v", tc.wantDuration, d)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 07:46:41 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. cmd/metacache-entries.go

    		// No prefix, simpler
    		for _, o := range m.o {
    			if !strings.Contains(o.name, separator) {
    				dst = append(dst, o)
    			}
    		}
    	}
    	m.o = dst
    }
    
    // truncate the number of entries to maximum n.
    func (m *metaCacheEntriesSorted) truncate(n int) {
    	if m == nil {
    		return
    	}
    	if len(m.o) > n {
    		if m.reuse {
    			for i, entry := range m.o[n:] {
    				metaDataPoolPut(entry.metadata)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 04:34:26 UTC 2024
    - 24K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/staticinit/sched.go

    		case ir.OCONV:
    			x := x.(*ir.ConvExpr)
    			if x.X.Op() == ir.OLITERAL {
    				if x, ok := truncate(x.X, x.Type()); ok {
    					return x
    				}
    				valid = false
    				return x
    			}
    		case ir.OADDSTR:
    			return addStr(x.(*ir.AddStringExpr))
    		}
    		return x
    	}
    	n = edit(n)
    	return n, valid
    }
    
    // truncate returns the result of force converting c to type t,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modfetch/cache.go

    			return nil // No edit needed.
    		}
    	}
    	// Remove existing contents, so that when we truncate to the actual size it will zero-fill,
    	// and we will be able to detect (some) incomplete writes as files containing trailing NUL bytes.
    	if err := f.Truncate(0); err != nil {
    		return err
    	}
    	// Reserve the final size and zero-fill.
    	if err := f.Truncate(int64(buf.Len())); err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/authoring-builds/logging.adoc

    |===
    
    CAUTION: The `DEBUG` log level can <<#sec:debug_security, expose sensitive security information to the console>>.
    
    [[stacktraces]]
    === Stacktrace command-line options
    
    `-s` or `--stacktrace`::
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 18:32:47 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. pkg/kube/inject/inject_test.go

    			mesh: func(m *meshapi.MeshConfig) {
    				m.DefaultConfig.Tracing = &meshapi.Tracing{}
    			},
    		},
    		{
    			in:   "truncate-canonical-name-pod.yaml",
    			want: "truncate-canonical-name-pod.yaml.injected",
    		},
    		{
    			in:   "truncate-canonical-name-custom-controller-pod.yaml",
    			want: "truncate-canonical-name-custom-controller-pod.yaml.injected",
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. src/bytes/buffer_test.go

    			t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil)
    		}
    		check(t, "TestBasicOperations (6)", &buf, testString[0:26])
    
    		buf.Truncate(26)
    		check(t, "TestBasicOperations (7)", &buf, testString[0:26])
    
    		buf.Truncate(20)
    		check(t, "TestBasicOperations (8)", &buf, testString[0:20])
    
    		empty(t, "TestBasicOperations (9)", &buf, testString[0:20], make([]byte, 5))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/builtins0.go

    	_ = make([]int, int /* ERROR "not an expression" */)
    	_ = make([]int, 10, float32 /* ERROR "not an expression" */)
    	_ = make([]int, "foo" /* ERROR "cannot convert" */)
    	_ = make([]int, 10, 2.3 /* ERROR "truncated" */)
    	_ = make([]int, 5, 10.0)
    	_ = make([]int, 0i)
    	_ = make([]int, 1.0)
    	_ = make([]int, 1.0<<s)
    	_ = make([]int, 1.1 /* ERROR "int" */ <<s)
    	_ = make([]int, - /* ERROR "must not be negative" */ 1, 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/ztunnelserver.go

    	}
    	n, oobn, flags, _, err := c.ReadMsgUnix(buf[:], oob)
    	if err != nil {
    		return nil, 0, err
    	}
    	if flags&unix.MSG_TRUNC != 0 {
    		return nil, 0, fmt.Errorf("truncated message")
    	}
    	if flags&unix.MSG_CTRUNC != 0 {
    		return nil, 0, fmt.Errorf("truncated control message")
    	}
    	var resp T
    	var respPtr PT = &resp
    	err = proto.Unmarshal(buf[:n], respPtr)
    	if err != nil {
    		return nil, 0, err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 22:07:03 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. src/math/big/float.go

    func (z *Float) SetPrec(prec uint) *Float {
    	z.acc = Exact // optimistically assume no rounding is needed
    
    	// special case
    	if prec == 0 {
    		z.prec = 0
    		if z.form == finite {
    			// truncate z to 0
    			z.acc = makeAcc(z.neg)
    			z.form = zero
    		}
    		return z
    	}
    
    	// general case
    	if prec > MaxPrec {
    		prec = MaxPrec
    	}
    	old := z.prec
    	z.prec = uint32(prec)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
Back to top