style
[psensor.git] / src / server / sysinfo.c
index 7ff70f4..139d66b 100644 (file)
@@ -1,22 +1,21 @@
 /*
-    Copyright (C) 2010-2011 jeanfi@gmail.com
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-    02110-1301 USA
-*/
-
+ * Copyright (C) 2010-2011 jeanfi@gmail.com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
 #include <stdlib.h>
 #include <glibtop/cpu.h>
 #include <glibtop/netlist.h>
@@ -36,8 +35,6 @@ void sysinfo_update(struct psysinfo *info)
        unsigned long int used = 0;
        unsigned long int dt;
        glibtop_netlist buf;
-       char **interfaces;
-       guint32 i;
 
        /* cpu */
        if (!cpu)
@@ -136,9 +133,7 @@ static json_object *net_to_json_object(const struct psysinfo *s)
 static json_object *sysinfo_to_json_object(const struct psysinfo *s)
 {
        static float load_scale = 1 << SI_LOAD_SHIFT;
-       json_object *mo;
        json_object *obj = json_object_new_object();
-       struct measure *m;
 
        json_object_object_add(obj, "load",
                               json_object_new_double(s->cpu_rate));