Display the memory usage as bytes instead of a percentage when show-memory-in-xbytes is set (#6503)
- move the percentage calculation to init_timeout(), use g_format_size() here too - carry memory/swap used vs total all around - make the XtmProcessStatusbar swap and memory properties strings instead of float Based on a diff from Ján Sucan, thanks! Note to translators: this changes some strings, mostly removing % in format printing
This commit is contained in:
@@ -30,7 +30,7 @@ GType xtm_process_window_get_type (void);
|
||||
GtkWidget * xtm_process_window_new (void);
|
||||
void xtm_process_window_show (GtkWidget *widget);
|
||||
GtkTreeModel * xtm_process_window_get_model (XtmProcessWindow *window);
|
||||
void xtm_process_window_set_system_info (XtmProcessWindow *window, guint num_processes, gfloat cpu, gfloat memory, gfloat swap);
|
||||
void xtm_process_window_set_system_info (XtmProcessWindow *window, guint num_processes, gfloat cpu, gfloat memory, gchar* memory_str, gfloat swap, gchar* swap_str);
|
||||
void xtm_process_window_show_swap_usage (XtmProcessWindow *window, gboolean show_swap_usage);
|
||||
|
||||
#endif /* !PROCESS_WINDOW_H */
|
||||
|
||||
Reference in New Issue
Block a user