浏览代码

ls: Lazily align the number of hard links in ls output :^)

Fixes #5155
Andreas Kling 4 年之前
父节点
当前提交
4ab2ff95ce
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Utilities/ls.cpp

+ 1 - 1
Userland/Utilities/ls.cpp

@@ -288,7 +288,7 @@ static bool print_filesystem_object(const String& path, const String& name, cons
     else
         printf("%c", st.st_mode & S_IXOTH ? 'x' : '-');
 
-    printf(" %u", st.st_nlink);
+    printf(" %3u", st.st_nlink);
 
     auto username = users.get(st.st_uid);
     if (!flag_print_numeric && username.has_value()) {