added --use_libwqsmart option
[psensor.git] / src / server / server.c
index eec698b..0576d3c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2011 jeanfi@gmail.com
+ * Copyright (C) 2010-2012 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
@@ -43,7 +43,6 @@
 
 #include "psensor_json.h"
 #include "url.h"
-#include "p_io.h"
 #include "server.h"
 
 static const char *program_name;
@@ -78,7 +77,7 @@ void print_version()
                 "<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>\n"
                 "This is free software: you are free to change and redistribute it.\n"
                 "There is NO WARRANTY, to the extent permitted by law.\n"),
-              "2010-2011");
+              "2010-2012");
 }
 
 void print_help()
@@ -358,7 +357,7 @@ int main(int argc, char *argv[])
 
        psensor_init();
 
-       server_data.sensors = get_all_sensors(600);
+       server_data.sensors = get_all_sensors(0, 600);
 
 #ifdef HAVE_GTOP
        server_data.cpu_usage = create_cpu_usage_sensor(600);