- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 144 for ts (0.1 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/internal/coverage/cfile/testsupport.go
continue } if err := ts.processPod(p, importpaths); err != nil { return err } } metafilespath := filepath.Join(dir, coverage.MetaFilesFileName) if _, err := os.Stat(metafilespath); err == nil { if err := ts.readAuxMetaFiles(metafilespath, importpaths); err != nil { return err } } // Emit percent. if err := ts.cf.EmitPercent(w, cpkg, true, true); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/en/docs/advanced/generate-clients.md
#### Install `openapi-ts` You can install `openapi-ts` in your frontend code with: <div class="termy"> ```console $ npm install @hey-api/openapi-ts --save-dev ---> 100% ``` </div> #### Generate Client Code To generate the client code you can use the command line application `openapi-ts` that would now be installed.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 10.5K bytes - Viewed (0) -
pkg/wasm/cache_test.go
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if gotNumRequest <= 1 { w.Write(binary1) } else { w.Write(binary2) } gotNumRequest++ })) defer ts.Close() url1 := ts.URL url2 := ts.URL + "/next"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 33.9K bytes - Viewed (0)