mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:47:45 +00:00
PropertiesWindow: Show the file size in a human readable format
This commit is contained in:
parent
17c0349d23
commit
3f9ac88c6e
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include "PropertiesWindow.h"
|
#include "PropertiesWindow.h"
|
||||||
#include <AK/LexicalPath.h>
|
#include <AK/LexicalPath.h>
|
||||||
|
#include <AK/NumberFormat.h>
|
||||||
#include <AK/StringBuilder.h>
|
#include <AK/StringBuilder.h>
|
||||||
#include <LibDesktop/Launcher.h>
|
#include <LibDesktop/Launcher.h>
|
||||||
#include <LibGUI/BoxLayout.h>
|
#include <LibGUI/BoxLayout.h>
|
||||||
|
@ -128,7 +129,7 @@ PropertiesWindow::PropertiesWindow(const String& path, bool disable_rename, Wind
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
properties.append({ "Size:", String::formatted("{} bytes", st.st_size) });
|
properties.append({ "Size:", human_readable_size_long(st.st_size) });
|
||||||
properties.append({ "Owner:", String::formatted("{} ({})", owner_name, st.st_uid) });
|
properties.append({ "Owner:", String::formatted("{} ({})", owner_name, st.st_uid) });
|
||||||
properties.append({ "Group:", String::formatted("{} ({})", group_name, st.st_gid) });
|
properties.append({ "Group:", String::formatted("{} ({})", group_name, st.st_gid) });
|
||||||
properties.append({ "Created at:", GUI::FileSystemModel::timestamp_string(st.st_ctime) });
|
properties.append({ "Created at:", GUI::FileSystemModel::timestamp_string(st.st_ctime) });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue