Fix value type issue in `eshell-info-banner--get-memory-gnu'
This commit is contained in:
		
							parent
							
								
									517b9d705c
								
							
						
					
					
						commit
						a43818569d
					
				@ -2,7 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
;; Author: Lucien Cartier-Tilet <lucien@phundrak.com>
 | 
					;; Author: Lucien Cartier-Tilet <lucien@phundrak.com>
 | 
				
			||||||
;; Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
 | 
					;; Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
 | 
				
			||||||
;; Version: 0.7.1
 | 
					;; Version: 0.7.2
 | 
				
			||||||
;; Package-Requires: ((emacs "25.1") (f "0.20") (s "1"))
 | 
					;; Package-Requires: ((emacs "25.1") (f "0.20") (s "1"))
 | 
				
			||||||
;; Homepage: https://labs.phundrak.com/phundrak/eshell-info-banner.el
 | 
					;; Homepage: https://labs.phundrak.com/phundrak/eshell-info-banner.el
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -402,7 +402,7 @@ For TEXT-PADDING and BAR-LENGTH, see the documentation of
 | 
				
			|||||||
                                        ; Memory ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 | 
					                                        ; Memory ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 | 
				
			||||||
(defun eshell-info-banner--get-memory-gnu ()
 | 
					(defun eshell-info-banner--get-memory-gnu ()
 | 
				
			||||||
  "Get memory usage for GNU/Linux and Hurd."
 | 
					  "Get memory usage for GNU/Linux and Hurd."
 | 
				
			||||||
  (seq-do (lambda (line)
 | 
					  (mapcar (lambda (line)
 | 
				
			||||||
            (let* ((line (split-string line " " t)))
 | 
					            (let* ((line (split-string line " " t)))
 | 
				
			||||||
              (list (s-chop-suffix ":" (nth 0 line))   ; name
 | 
					              (list (s-chop-suffix ":" (nth 0 line))   ; name
 | 
				
			||||||
                    (string-to-number (nth 1 line))    ; total
 | 
					                    (string-to-number (nth 1 line))    ; total
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user