[gnome-system-monitor] Changed a few types in preparation for using libgtop
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Changed a few types in preparation for using libgtop
- Date: Tue, 27 Oct 2020 06:42:02 +0000 (UTC)
commit c1d6582409aca36eb3447073dd10e68e692c1fa1
Author: Jacob Barkdull <jacobbarkdull gmail com>
Date: Sat Jan 25 17:40:43 2020 -0800
Changed a few types in preparation for using libgtop
src/setaffinity.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/setaffinity.cpp b/src/setaffinity.cpp
index 605535b7..6e4b8a23 100644
--- a/src/setaffinity.cpp
+++ b/src/setaffinity.cpp
@@ -40,7 +40,7 @@ namespace
GtkWidget *dialog;
pid_t pid;
GtkWidget **buttons;
- gdouble cpu_count;
+ guint32 cpu_count;
gboolean toggle_single_blocked;
gboolean toggle_all_blocked;
};
@@ -49,7 +49,7 @@ namespace
static gboolean
all_toggled (SetAffinityData *affinity)
{
- gint i;
+ guint32 i;
/* Check if any CPU's aren't set for this process */
for (i = 1; i <= affinity->cpu_count; i++) {
@@ -96,7 +96,7 @@ affinity_toggle_all (GtkToggleButton *toggle_all_button,
{
SetAffinityData *affinity = static_cast<SetAffinityData *>(data);
- gint i;
+ guint32 i;
gboolean state;
/* Return void if toggle all is blocked */
@@ -155,7 +155,7 @@ set_affinity (GtkToggleButton *button,
SetAffinityData *affinity = static_cast<SetAffinityData *>(data);
cpu_set_t cpuset;
- gint i;
+ guint32 i;
gint taskset_cpu = 0;
gchar **cpu_list;
gchar *pc;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]