summaryrefslogtreecommitdiff
path: root/shell/shell.c
diff options
context:
space:
mode:
authorLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 18:17:29 -0300
committerLucas de Castro Borges <lucas@gnuabordo.com.br>2024-04-22 18:17:29 -0300
commit48726c0c219ffeddb45befe0fb8621e1b2648e78 (patch)
treee12c7e029c07a98e173d5acff279f121188bbd1a /shell/shell.c
parent5bba5c481d7273b475a39eb61e5eacec65d3c8e5 (diff)
New upstream version 2.0.7preupstream/2.0.7pre
Diffstat (limited to 'shell/shell.c')
-rw-r--r--shell/shell.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/shell/shell.c b/shell/shell.c
index a2773523..22b1003f 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -861,6 +861,7 @@ static gboolean update_field(gpointer data)
/* if the entry is still selected, update it */
if (fu->entry->selected && fu->entry->fieldfunc) {
gchar *value = fu->entry->fieldfunc(fu->field_name);
+ gdouble v;
if (item->is_iter) {
/*
@@ -872,7 +873,12 @@ static gboolean update_field(gpointer data)
item->iter)) {
load_graph_set_title(shell->loadgraph, fu->field_name);
- load_graph_update(shell->loadgraph, atof(value));
+ v=atof(value);
+ //fix KiB->Bytes for UberGraph (GTK3)
+#if GTK_CHECK_VERSION(3, 0, 0)
+ if(strstr(value,"KiB")) v*=1024;
+#endif
+ load_graph_update(shell->loadgraph, v);
}
GtkTreeStore *store = GTK_TREE_STORE(shell->info_tree->model);