* fixed a crash

* fixed the vm-display
* added a TODO-list



(Old svn revision: 1919)
This commit is contained in:
Johannes Zellner
2006-08-23 22:07:33 +00:00
parent e442e981a0
commit 0b10471e77
3 changed files with 17 additions and 16 deletions

8
TODO
View File

@@ -0,0 +1,8 @@
+ *BSD support with the 'kvm' files
+ ability to switch to a tree-store
+ sending custom signals
+ overall-cpu-usage and mem-usage display
+ more languages
+ tray-icon
* show 'Mb' in the memory columns

View File

@@ -359,11 +359,8 @@ void remove_list_item(gint pid)
gint compare_int_list_item(GtkTreeModel *model, GtkTreeIter *iter1, GtkTreeIter *iter2, gpointer column)
{
gchar *s1 = NULL;
gchar *s2 = NULL;
s1 = (gchar*)malloc(sizeof(char) * 100);
s2 = (gchar*)malloc(sizeof(char) * 100);
gchar *s1 = "";
gchar *s2 = "";
gint ret = 0;
@@ -391,23 +388,18 @@ gint compare_int_list_item(GtkTreeModel *model, GtkTreeIter *iter1, GtkTreeIter
gint compare_string_list_item(GtkTreeModel *model, GtkTreeIter *iter1, GtkTreeIter *iter2, gpointer column)
{
gchar *s1 = NULL;
gchar *s2 = NULL;
s1 = (gchar*)malloc(sizeof(gchar) * 100);
s2 = (gchar*)malloc(sizeof(gchar) * 100);
gchar *s1 = "";
gchar *s2 = "";
gint ret = 0;
gtk_tree_model_get(model, iter1, GPOINTER_TO_INT(column), &s1, -1);
gtk_tree_model_get(model, iter2, GPOINTER_TO_INT(column), &s2, -1);
if(s1 == NULL)
s1 = "";
if(s2 == NULL)
s2 = "";
ret = strcmp(s1, s2);
if(s1 != NULL && s2 != NULL)
ret = strcmp(s1, s2);
else
ret = 0;
if(s1 != NULL)
g_free(s1);

View File

@@ -81,6 +81,7 @@ struct task get_task_details(gint pid)
task.time = stime + utime;
task.old_time = task.time;
task.time_percentage = 0;
task.size = task.size / 1024;
}
task.uid = status.st_uid;
passwdp = getpwuid(task.uid);