Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for speak (0.22 sec)

  1. cmd/bucket-stats.go

    		totpeak = math.Max(math.Max(tot.Peak, totpeak), tot.Curr)
    		lpeak = math.Max(math.Max(v[Large].Peak, lpeak), v[Large].Curr)
    		speak = math.Max(math.Max(v[Small].Peak, speak), v[Small].Curr)
    		if lpeak > 0 || speak > 0 {
    			count++
    		}
    	}
    	if count > 0 {
    		lrg := XferStats{
    			Avg:  lavg / float64(count),
    			Curr: lcurr / float64(count),
    			Peak: lpeak,
    		}
    		sml := XferStats{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/cni-watcher.go

    	PodName      string
    	PodNamespace string
    	IPs          []IPConfig
    }
    
    // IPConfig contains an interface/gateway/address combo defined for a newly-started pod by CNI.
    // This is "from the horse's mouth" so to speak and will be populated before Kube is informed of the
    // pod IP.
    type IPConfig struct {
    	Interface *int
    	Address   net.IPNet
    	Gateway   net.IP
    }
    
    type CniPluginServer struct {
    	cniListenServer       *http.Server
    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)
  3. tests/tests_test.go

    	rand.Seed(time.Now().UnixNano())
    	rand.Shuffle(len(allModels), func(i, j int) { allModels[i], allModels[j] = allModels[j], allModels[i] })
    
    	DB.Migrator().DropTable("user_friends", "user_speaks")
    
    	if err = DB.Migrator().DropTable(allModels...); err != nil {
    		log.Printf("Failed to drop table, got error %v\n", err)
    		os.Exit(1)
    	}
    
    	if err = DB.AutoMigrate(allModels...); err != nil {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  4. cmd/bucket-replication-metrics.go

    }
    
    func (rx *XferStats) merge(o XferStats) XferStats {
    	curr := calcAvg(rx.curr(), o.curr(), rx.N, o.N)
    	peak := rx.Peak
    	if o.Peak > peak {
    		peak = o.Peak
    	}
    	if curr > peak {
    		peak = curr
    	}
    	return XferStats{
    		Avg:     calcAvg(rx.Avg, o.Avg, rx.N, o.N),
    		Peak:    peak,
    		Curr:    curr,
    		measure: rx.measure,
    		N:       rx.N + o.N,
    	}
    }
    
    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)
  5. cmd/bucket-replication-metrics_gen.go

    			}
    		case "av":
    			z.Avg, err = dc.ReadFloat64()
    			if err != nil {
    				err = msgp.WrapError(err, "Avg")
    				return
    			}
    		case "p":
    			z.Peak, err = dc.ReadFloat64()
    			if err != nil {
    				err = msgp.WrapError(err, "Peak")
    				return
    			}
    		case "n":
    			z.N, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "N")
    				return
    			}
    		default:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 33.3K bytes
    - Viewed (0)
  6. schema/schema_test.go

    			References: []Reference{{"ID", "User", "ManagerID", "User", "", true}},
    		},
    		{
    			Name: "Languages", Type: schema.Many2Many, Schema: "User", FieldSchema: "Language",
    			JoinTable: JoinTable{Name: "UserSpeak", Table: "user_speaks", Fields: []schema.Field{
    				{
    					Name: "UserID", DBName: "user_id", BindNames: []string{"UserID"}, DataType: schema.Uint,
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  7. tests/distinct_test.go

    	}
    
    	dryDB := DB.Session(&gorm.Session{DryRun: true})
    	r := dryDB.Distinct("u.id, u.*").Table("user_speaks as s").Joins("inner join users as u on u.id = s.user_id").Where("s.language_code ='US' or s.language_code ='ES'").Find(&User{})
    	if !regexp.MustCompile(`SELECT DISTINCT u\.id, u\.\* FROM user_speaks as s inner join users as u`).MatchString(r.Statement.SQL.String()) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  8. utils/tests/models.go

    // User has one `Account` (has one), many `Pets` (has many) and `Toys` (has many - polymorphic)
    // He works in a Company (belongs to), he has a Manager (belongs to - single-table), and also managed a Team (has many - single-table)
    // He speaks many languages (many to many) and has many friends (many to many - single-table)
    // His pet also has one Toy (has one - polymorphic)
    // NamedPet is a reference to a named `Pet` (has one)
    type User struct {
    	gorm.Model
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  9. cmd/speedtest.go

    					throughputHighestGet = totalGet
    				}
    				sendResult()
    				break
    			}
    
    			// We break if we did not see 2.5% growth rate in total GET
    			// requests, we have reached our peak at this point.
    			doBreak := float64(totalGet-throughputHighestGet)/float64(totalGet) < 0.025
    
    			throughputHighestGet = totalGet
    			throughputHighestResults = results
    			throughputHighestPut = totalPut
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. cmd/site-replication.go

    				x2, ok := v2.XferStats[replication.MetricName(rm)]
    				if !ok {
    					x2 = replication.XferStats{}
    				}
    				x2.AvgRate += x.Avg
    				x2.CurrRate += x.Curr
    				if x.Peak > x2.PeakRate {
    					x2.PeakRate = x.Peak
    				}
    				v2.XferStats[replication.MetricName(rm)] = x2
    			}
    			sm.Metrics[dID] = v2
    		}
    	}
    	sm.Uptime = UTCNow().Unix() - globalBootTime.Unix()
    	return sm, nil
    }
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
Back to top