Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for maxFiles (0.19 sec)

  1. pkg/kubelet/logs/container_log_manager.go

    func NewContainerLogManager(runtimeService internalapi.RuntimeService, osInterface kubecontainer.OSInterface, maxSize string, maxFiles int, maxWorkers int, monitorInterval metav1.Duration) (ContainerLogManager, error) {
    	if maxFiles <= 1 {
    		return nil, fmt.Errorf("invalid MaxFiles %d, must be > 1", maxFiles)
    	}
    	parsedMaxSize, err := parseMaxSize(maxSize)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. pkg/kubelet/logs/container_log_manager_test.go

    func TestRemoveExcessLog(t *testing.T) {
    	for desc, test := range map[string]struct {
    		max    int
    		expect []string
    	}{
    		"MaxFiles equal to 2": {
    			max:    2,
    			expect: []string{},
    		},
    		"MaxFiles more than 2": {
    			max:    3,
    			expect: []string{"test-log-4"},
    		},
    		"MaxFiles more than log file number": {
    			max:    6,
    			expect: []string{"test-log-1", "test-log-2", "test-log-3", "test-log-4"},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    	if maxFiles < 0 {
    		// Order by name for compatibility with old code.
    		order = func(i, j int) bool { return files[i].fname < files[j].fname }
    		maxFiles = len(files)
    	}
    	sort.Slice(files, order)
    	result := WebListData{
    		Total: rpt.formatValue(rpt.total),
    	}
    	for i, f := range files {
    		if i < maxFiles {
    			result.Files = append(result.Files, sp.generateFile(f, rpt))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/support.go

    	files map[string]*fileInfo
    }
    
    type fileInfo struct {
    	file     *token.File
    	lastline int
    }
    
    const maxlines = 64 * 1024
    
    func (s *fakeFileSet) pos(file string, line, column int) token.Pos {
    	// TODO(mdempsky): Make use of column.
    
    	// Since we don't know the set of needed file positions, we reserve
    	// maxlines positions per file. We delay calling token.File.SetLines until
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/util/GFileUtils.java

         * Returns the tail of a file.
         *
         * @param file to read from tail
         * @param maxLines max lines to read
         * @return tail content
         * @throws org.gradle.util.GFileUtils.TailReadingException when reading failed
         */
        @SuppressWarnings("DefaultCharset")
        public static String tail(File file, int maxLines) throws TailReadingException {
            logDeprecation();
            BufferedReader reader = null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. pkg/volume/util/atomic_writer_test.go

    	if err == nil {
    		t.Fatalf("unexpected success creating writer for nonexistent target dir: %v", err)
    	}
    }
    
    func TestValidatePath(t *testing.T) {
    	maxPath := strings.Repeat("a", maxPathLength+1)
    	maxFile := strings.Repeat("a", maxFileNameLength+1)
    
    	cases := []struct {
    		name  string
    		path  string
    		valid bool
    	}{
    		{
    			name:  "valid 1",
    			path:  "i/am/well/behaved.txt",
    			valid: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top