~noskcaj/ubuntu/vivid/gnome-system-monitor/titlebars

« back to all changes in this revision

Viewing changes to debian/patches/01-fix_ftbfs_hurd.patch

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2014-02-17 22:12:59 UTC
  • mfrom: (1.4.12) (15 sid)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: package-import@ubuntu.com-20140217221259-khdbenb3wt1b81zw
Tags: 3.11.90-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- gnome-system-monitor-3.8.2.1/src/procproperties.cpp.original        2014-02-08 21:09:08.000000000 +0000
 
2
+++ gnome-system-monitor-3.8.2.1/src/procproperties.cpp 2014-02-08 21:12:12.000000000 +0000
 
3
@@ -125,6 +125,12 @@
 
4
     else
 
5
         HZ = (cinf.stathz ? cinf.stathz : cinf.hz);
 
6
 #endif
 
7
+#ifdef __GNU__
 
8
+    int HZ;
 
9
+    HZ = sysconf(_SC_CLK_TCK);
 
10
+    if (HZ < 0)
 
11
+        HZ = 100;
 
12
+#endif
 
13
     proc_arg proc_props[] = {
 
14
         { N_("Process Name"), g_strdup_printf("%s", info->name)},
 
15
         { N_("User"), g_strdup_printf("%s (%d)", info->user.c_str(), info->uid)},