- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for badwidth (0.21 sec)
-
src/cmd/compile/internal/types/utils.go
// Copyright 2017 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package types const BADWIDTH = -1000000000 type bitset8 uint8 func (f *bitset8) set(mask uint8, b bool) { if b { *(*uint8)(f) |= mask } else { *(*uint8)(f) &^= mask }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 29 09:57:31 UTC 2020 - 339 bytes - Viewed (0) -
test/fixedbugs/issue4359.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 377 bytes - Viewed (0) -
pkg/util/bandwidth/doc.go
See the License for the specific language governing permissions and limitations under the License. */ // Package bandwidth provides utilities for bandwidth shaping
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 16 17:48:21 UTC 2016 - 700 bytes - Viewed (0) -
internal/bucket/bandwidth/measurement.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package bandwidth import ( "sync" "sync/atomic" "time" ) const ( // betaBucket is the weight used to calculate exponential moving average betaBucket = 0.1 // Number of averages considered = 1/(1-betaObject) ) // bucketMeasurement captures the bandwidth details for one bucket type bucketMeasurement struct { lock sync.Mutex
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 03 20:41:51 UTC 2023 - 2.9K bytes - Viewed (0) -
src/cmd/fix/printerconfig_test.go
b := printer.Config{0, 8} c := &printer.Config{0} d := &printer.Config{Tabwidth: 8, Mode: 0} return printer.Config{0, 8} } `, Out: `package main import "go/printer" func f() printer.Config { b := printer.Config{Mode: 0, Tabwidth: 8} c := &printer.Config{Mode: 0} d := &printer.Config{Tabwidth: 8, Mode: 0} return printer.Config{Mode: 0, Tabwidth: 8} } `, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 748 bytes - Viewed (0) -
internal/bucket/bandwidth/reader.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package bandwidth import ( "context" "io" "math" ) // MonitoredReader represents a throttled reader subject to bandwidth monitoring type MonitoredReader struct { r io.Reader throttle *bucketThrottle ctx context.Context // request context
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Sep 06 03:21:59 UTC 2023 - 3.1K bytes - Viewed (0) -
internal/bucket/bandwidth/monitor.go
// GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package bandwidth //go:generate msgp -file=$GOFILE -unexported import ( "context" "sync" "time" "golang.org/x/time/rate" ) //msgp:ignore bucketThrottle Monitor type bucketThrottle struct {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 19 22:54:46 UTC 2024 - 6K bytes - Viewed (0) -
internal/bpool/bpool_test.go
size := uint64(4) width := 1024 capWidth := 2048 bufPool := NewBytePoolCap(size, width, capWidth) // Check the width if bufPool.Width() != width { t.Fatalf("bytepool width invalid: got %v want %v", bufPool.Width(), width) } // Check with width cap if bufPool.WidthCap() != capWidth { t.Fatalf("bytepool capWidth invalid: got %v want %v", bufPool.WidthCap(), capWidth) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jan 30 19:13:27 UTC 2024 - 2.6K bytes - Viewed (0) -
internal/bpool/bpool.go
func NewBytePoolCap(maxSize uint64, width int, capwidth int) (bp *BytePoolCap) { if capwidth > 0 && capwidth < 64 { panic("buffer capped with smaller than 64 bytes is not supported") } if capwidth > 0 && width > capwidth { panic("buffer length cannot be > capacity of the buffer") } return &BytePoolCap{ c: make(chan []byte, maxSize), w: width, wcap: capwidth, } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 16:44:59 UTC 2024 - 2.6K bytes - Viewed (0) -
src/internal/trace/traceviewer/histogram.go
} // ToHTML renders the histogram as HTML. func (h *TimeHistogram) ToHTML(urlmaker func(min, max time.Duration) string) template.HTML { if h == nil || h.Count == 0 { return template.HTML("") } const barWidth = 400 maxCount := 0 for _, count := range h.Buckets { if count > maxCount { maxCount = count } } w := new(strings.Builder) fmt.Fprintf(w, `<table>`)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:28:58 UTC 2023 - 2.3K bytes - Viewed (0)