Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,217 for fine (0.15 sec)

  1. cmd/erasure-healing_test.go

    		t.Fatal(err)
    	}
    
    	// After heal the meta file should be as expected.
    	if !fileInfoPreHeal1.Equals(fileInfoPostHeal1) {
    		t.Fatal("HealObject failed")
    	}
    
    	fileInfoPostHeal2, err = disk.ReadVersion(context.Background(), "", bucket, object, "", ReadOptions{ReadData: false, Healing: true})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// After heal the meta file should be as expected.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/lex/tokenizer.go

    type Tokenizer struct {
    	tok  ScanToken
    	s    *scanner.Scanner
    	base *src.PosBase
    	line int
    	file *os.File // If non-nil, file descriptor to close.
    }
    
    func NewTokenizer(name string, r io.Reader, file *os.File) *Tokenizer {
    	var s scanner.Scanner
    	s.Init(r)
    	// Newline is like a semicolon; other space characters are fine.
    	s.Whitespace = 1<<'\t' | 1<<'\r' | 1<<' '
    	// Don't skip comments: we need to count newlines.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  3. docs/debugging/hash-set/main.go

    	for i := 1; i <= cardinality; i++ {
    		nums[i-1] = 1 + ((start + i) % cardinality)
    	}
    	return nums
    }
    
    var (
    	file, object, deploymentID, prefix string
    	setCount, shards                   int
    	verbose                            bool
    )
    
    func main() {
    	flag.StringVar(&file, "file", "", "Read all objects from file, newline separated")
    	flag.StringVar(&prefix, "prefix", "", "Add prefix to all objects")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  4. misc/cgo/gmp/gmp.go

    Instead, a separate tool, cgo, processes it to produce three output
    files.  The first two, 6g.go and 6c.c, are a Go source file for 6g and
    a C source file for 6c; both compile as part of the named package
    (gmp, in this example).  The third, gcc.c, is a C source file for gcc;
    it compiles into a shared object (.so) that is dynamically linked into
    any 6.out that imports the first two files.
    
    The stanza
    
    	// #include <gmp.h>
    	import "C"
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  5. cmd/erasure-metadata-utils.go

    	return diskCount
    }
    
    // hashOrder - hashes input key to return consistent
    // hashed integer slice. Returned integer order is salted
    // with an input key. This results in consistent order.
    // NOTE: collisions are fine, we are not looking for uniqueness
    // in the slices returned.
    func hashOrder(key string, cardinality int) []int {
    	if cardinality <= 0 {
    		// Returns an empty int slice for cardinality < 0.
    		return nil
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  6. internal/bucket/bandwidth/measurement.go

    		return
    	}
    
    	duration := endTime.Sub(m.startTime)
    
    	bytesSinceLastWindow := atomic.SwapUint64(&m.bytesSinceLastWindow, 0)
    
    	if m.expMovingAvg == 0 {
    		// Should address initial calculation and should be fine for resuming from 0
    		m.expMovingAvg = float64(bytesSinceLastWindow) / duration.Seconds()
    		return
    	}
    
    	increment := float64(bytesSinceLastWindow) / duration.Seconds()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jun 03 20:41:51 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  7. cmd/bucket-replication-metrics.go

    		return
    	}
    
    	duration := endTime.Sub(m.startTime)
    
    	bytesSinceLastWindow := atomic.SwapUint64(&m.bytesSinceLastWindow, 0)
    
    	if m.expMovingAvg == 0 {
    		// Should address initial calculation and should be fine for resuming from 0
    		m.expMovingAvg = float64(bytesSinceLastWindow) / duration.Seconds()
    		return
    	}
    
    	increment := float64(bytesSinceLastWindow) / duration.Seconds()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-decom_test.go

    	if err != nil {
    		return nil, nil, err
    	}
    
    	pools := mustGetPoolEndpoints(0, fsDirs[:16]...)
    	pools = append(pools, mustGetPoolEndpoints(1, fsDirs[16:]...)...)
    
    	// Everything is fine, should return nil
    	objLayer, err := newErasureServerPools(context.Background(), pools)
    	if err != nil {
    		return nil, nil, err
    	}
    	return objLayer, fsDirs, nil
    }
    
    func TestPoolMetaValidate(t *testing.T) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 03 16:47:40 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/cni-watcher.go

    		// net.ip is implicitly convertible to netip as slice
    		ip, _ := netip.AddrFromSlice(configuredPodIPs.Address.IP)
    		// We ignore the mask of the IPNet - it's fine if the IPNet defines
    		// a block grant of addresses, we just need one for checking routes.
    		podIps = append(podIps, ip)
    	}
    	// Note that we use the IP info from the CNI plugin here - the Pod struct as reported by K8S doesn't have this info
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  10. cmd/untar.go

    			go func(name string, fi fs.FileInfo, b []byte) {
    				rc := disconnectReader{r: bytes.NewReader(b)}
    				defer func() {
    					rc.Close()
    					<-asyncWriters
    					wg.Done()
    					//nolint:staticcheck // SA6002 we are fine with the tiny alloc
    					poolBuf128k.Put(b)
    				}()
    				if err := putObject(&rc, fi, name); err != nil {
    					if o.ignoreErrs {
    						s3LogIf(ctx, err)
    						return
    					}
    					asyncErrMu.Lock()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
Back to top