Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for ts (0.03 sec)

  1. src/runtime/time.go

    }
    
    // deleteMin removes timer 0 from ts.
    // ts must be locked.
    func (ts *timers) deleteMin() {
    	assertLockHeld(&ts.mu)
    	t := ts.heap[0].timer
    	if t.ts != ts {
    		throw("wrong timers")
    	}
    	t.ts = nil
    	last := len(ts.heap) - 1
    	if last > 0 {
    		ts.heap[0] = ts.heap[last]
    	}
    	ts.heap[last] = timerWhen{}
    	ts.heap = ts.heap[:last]
    	if last > 0 {
    		ts.siftDown(0)
    	}
    	ts.updateMinWhenHeap()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  2. cmd/metrics-v3-system-cpu.go

    		m.Set(sysCPULoadPerc, math.Round(perc*100)/100)
    	}
    
    	ts := cpuMetrics.TimesStat
    	tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal
    	cpuUserVal := math.Round(ts.User/tot*100*100) / 100
    	m.Set(sysCPUUser, cpuUserVal)
    	cpuSystemVal := math.Round(ts.System/tot*100*100) / 100
    	m.Set(sysCPUSystem, cpuSystemVal)
    	cpuNiceVal := math.Round(ts.Nice/tot*100*100) / 100
    	m.Set(sysCPUNice, cpuNiceVal)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 23 23:56:12 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/net/http/client_test.go

    func testRedirectCookiesJar(t *testing.T, mode testMode) {
    	var ts *httptest.Server
    	ts = newClientServerTest(t, mode, echoCookiesRedirectHandler).ts
    	c := ts.Client()
    	c.Jar = new(TestJar)
    	u, _ := url.Parse(ts.URL)
    	c.Jar.SetCookies(u, []*Cookie{expectedCookies[0]})
    	resp, err := c.Get(ts.URL)
    	if err != nil {
    		t.Fatalf("Get: %v", err)
    	}
    	resp.Body.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  4. src/runtime/os_aix.go

    //go:nosplit
    func semasleep(ns int64) int32 {
    	mp := getg().m
    	if ns >= 0 {
    		var ts timespec
    
    		if clock_gettime(_CLOCK_REALTIME, &ts) != 0 {
    			throw("clock_gettime")
    		}
    		ts.tv_sec += ns / 1e9
    		ts.tv_nsec += ns % 1e9
    		if ts.tv_nsec >= 1e9 {
    			ts.tv_sec++
    			ts.tv_nsec -= 1e9
    		}
    
    		if r, err := sem_timedwait((*semt)(unsafe.Pointer(mp.waitsema)), &ts); r != 0 {
    			if err == _ETIMEDOUT || err == _EAGAIN || err == _EINTR {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. src/net/http/httptest/server_test.go

    	// in the exported fields of Server.
    	"NewServerManual": func(h http.Handler) *Server {
    		ts := &Server{Listener: newLocalListener(), Config: &http.Server{Handler: h}}
    		ts.Start()
    		return ts
    	},
    	"NewTLSServerManual": func(h http.Handler) *Server {
    		ts := &Server{Listener: newLocalListener(), Config: &http.Server{Handler: h}}
    		ts.StartTLS()
    		return ts
    	},
    }
    
    func TestServer(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. src/net/http/serve_test.go

    			io.WriteString(w, r.RemoteAddr)
    		}), func(ts *httptest.Server) {
    			ts.Config.ReadHeaderTimeout = readHeaderTimeout
    			ts.Config.IdleTimeout = 2 * readHeaderTimeout
    		})
    		defer cst.close()
    		ts := cst.ts
    		t.Logf("ReadHeaderTimeout = %v", ts.Config.ReadHeaderTimeout)
    		t.Logf("IdleTimeout = %v", ts.Config.IdleTimeout)
    		c := ts.Client()
    
    		get := func() (string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  7. src/cmd/trace/gstate.go

    func (gs *gState[R]) blockedSyscallEnd(ts trace.Time, stack trace.Stack, ctx *traceContext) {
    	name := "exit blocked syscall"
    	gs.setStartCause(ts, name, trace.SyscallP, stack)
    
    	// Emit an syscall exit instant event for the "Syscall" lane.
    	ctx.Instant(traceviewer.InstantEvent{
    		Name:     name,
    		Ts:       ctx.elapsed(ts),
    		Resource: trace.SyscallP,
    		Stack:    ctx.Stack(viewerFrames(stack)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    func testServeIndexHtmlFS(t *testing.T, mode testMode) {
    	const want = "index.html says hello\n"
    	ts := newClientServerTest(t, mode, FileServer(Dir("."))).ts
    	defer ts.Close()
    
    	for _, path := range []string{"/testdata/", "/testdata/index.html"} {
    		res, err := ts.Client().Get(ts.URL + path)
    		if err != nil {
    			t.Fatal(err)
    		}
    		b, err := io.ReadAll(res.Body)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  9. src/net/http/transport_test.go

    			ts := newClientServerTest(t, mode, h).ts
    			go proxy(t)
    			c := ts.Client()
    			c.Transport.(*Transport).Proxy = ProxyURL(pu)
    			r, err := c.Head(ts.URL)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if r.Header.Get(sentinelHeader) != sentinelValue {
    				t.Errorf("Failed to retrieve sentinel value")
    			}
    			got := <-ch
    			ts.Close()
    			tsu, err := url.Parse(ts.URL)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  10. src/net/http/clientserver_test.go

    	}
    
    	switch mode {
    	case http1Mode:
    		cst.ts.Start()
    	case https1Mode:
    		cst.ts.StartTLS()
    	case http2Mode:
    		ExportHttp2ConfigureServer(cst.ts.Config, nil)
    		cst.ts.TLS = cst.ts.Config.TLSConfig
    		cst.ts.StartTLS()
    	default:
    		t.Fatalf("unknown test mode %v", mode)
    	}
    	cst.c = cst.ts.Client()
    	cst.tr = cst.c.Transport.(*Transport)
    	if mode == http2Mode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
Back to top