Merge lp:~jfi/ubuntu/quantal/psensor/new-upstream into lp:ubuntu/quantal/psensor

Proposed by Jean-Philippe Orsini
Status: Superseded
Proposed branch: lp:~jfi/ubuntu/quantal/psensor/new-upstream
Merge into: lp:ubuntu/quantal/psensor
Diff against target: 2846 lines (+188/-1677)
76 files modified
.pc/LP1021900.patch/src/lib/psensor.c (+0/-461)
.pc/LP968912.patch/src/lib/psensor.c (+0/-461)
.pc/applied-patches (+0/-3)
.pc/drop_g_thread_init.patch/src/main.c (+0/-539)
NEWS (+7/-0)
configure (+10/-10)
configure.ac (+1/-1)
debian/changelog (+30/-0)
debian/control (+2/-2)
debian/copyright (+2/-2)
debian/patches/LP968912.patch (+0/-59)
debian/patches/drop_g_thread_init.patch (+0/-16)
debian/patches/series (+0/-2)
po/fr.po (+9/-9)
po/psensor.pot (+12/-12)
po/tr.po (+12/-12)
po/zh_CN.po (+12/-12)
src/cfg.c (+1/-1)
src/cfg.h (+1/-1)
src/compat.h (+1/-1)
src/graph.c (+1/-1)
src/graph.h (+1/-1)
src/lib/amd.c (+3/-11)
src/lib/amd.h (+2/-1)
src/lib/color.c (+1/-1)
src/lib/color.h (+1/-1)
src/lib/cpu.c (+1/-1)
src/lib/cpu.h (+1/-1)
src/lib/hdd.c (+1/-1)
src/lib/hdd.h (+1/-1)
src/lib/lmsensor.c (+1/-1)
src/lib/lmsensor.h (+1/-1)
src/lib/log.c (+1/-1)
src/lib/log.h (+1/-1)
src/lib/measure.c (+1/-1)
src/lib/measure.h (+1/-1)
src/lib/nvidia.c (+1/-1)
src/lib/nvidia.h (+1/-1)
src/lib/p_io.c (+1/-1)
src/lib/p_io.h (+1/-1)
src/lib/psensor.c (+2/-2)
src/lib/psensor.h (+1/-1)
src/lib/psensor_json.c (+1/-1)
src/lib/psensor_json.h (+1/-1)
src/lib/url.c (+1/-1)
src/lib/url.h (+1/-1)
src/main.c (+25/-3)
src/psensor.1 (+2/-2)
src/rsensor.c (+1/-1)
src/rsensor.h (+1/-1)
src/server/psensor-server.1 (+2/-2)
src/server/server.c (+2/-2)
src/server/server.h (+1/-1)
src/server/sysinfo.c (+1/-1)
src/server/sysinfo.h (+1/-1)
src/ui.c (+2/-2)
src/ui.h (+1/-1)
src/ui_appindicator.c (+1/-1)
src/ui_appindicator.h (+1/-1)
src/ui_color.c (+1/-1)
src/ui_color.h (+1/-1)
src/ui_graph.c (+1/-1)
src/ui_graph.h (+1/-1)
src/ui_notify.c (+1/-1)
src/ui_notify.h (+1/-1)
src/ui_pref.c (+1/-1)
src/ui_pref.h (+1/-1)
src/ui_sensorlist.c (+1/-1)
src/ui_sensorlist.h (+1/-1)
src/ui_sensorpref.c (+1/-1)
src/ui_sensorpref.h (+1/-1)
src/ui_status.c (+1/-1)
src/ui_status.h (+1/-1)
src/ui_unity.c (+1/-1)
src/ui_unity.h (+1/-1)
www/psensor.js (+1/-1)
To merge this branch: bzr merge lp:~jfi/ubuntu/quantal/psensor/new-upstream
Reviewer Review Type Date Requested Status
James Page Needs Fixing
Ubuntu branches Pending
Review via email: mp+114792@code.launchpad.net

This proposal has been superseded by a proposal from 2012-07-20.

Commit message

* Merge from Debian testing. Remaining changes:
    + Modifed build-dep to add NVidia and Application Indicator support
    + Only add an nvidia-settings build-dep on i386 and amd6
    + debian/patches/LP1021900.patch: added degree Celcius symbol
* Remove drop_g_thread_init.patch: fixed upstream since 0.6.2.17
* Remove LP968912.patch: fixed upstream since 0.6.2.17

Description of the change

Merge from debian testing to update to new upstream release which removes 2 patches in the Ubuntu package.
The new debian packaging is changing builddep libcurl4-openssl-dev to libcurl4-gnutls-dev (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668180).
The new upstream release is modifying:
   - src/lib/amd.c which is not compiled on ubuntu
   - src/main.c to remove the call of g_thread_init (corresponding to the ubuntu patch drop_g_thread_init.patch)
   - src/lib/psensor.c to fix LP #968912 (corresponding to the ubuntu patch LP968912.patch)
   - all sources files to update the end date of the copyright
It should fix the 2 conflicts files reported by 'merge-o-matic' see https://merges.ubuntu.com/p/psensor/REPORT

To post a comment you must log in.
Revision history for this message
James Page (james-page) wrote :

Hi Jean-Philippe

Thanks for taking the time to prepare this merge from Debian unstable.

You need to document what has happened to all of the changes that where made since this package was last merged from Debian in the changelog entry for 0.6.2.17-2ubuntu1; if patches or changes have been dropped this should be documented with reasons why.

Please update

Thanks.

review: Needs Fixing
Revision history for this message
Jean-Philippe Orsini (jfi) wrote :

Hello James,

I have update the debian/changelog file.

I have removed the 2 patches from the package because the 2 corresponding bugs are fixed by the psensor version that has been merged.

Thanks for the review.

Unmerged revisions

18. By Jean-Philippe Orsini

Updated changelog:
 - added LP1021900.patch as remaining changes
 - added information about the drop of 2 patches with reason

17. By Jean-Philippe Orsini

Merged with last revision of lp:ubuntu/psensor

16. By Jean-Philippe Orsini

removed useless patches

15. By Jean-Philippe Orsini

* Merge from Debian testing. Remaining changes:
  + Modifed build-dep to add NVidia and Application Indicator support
  + Only add an nvidia-settings build-dep on i386 and amd6

14. By Jean-Philippe Orsini

drop patches which has been integrated into the 0.6.2.17 release of psensor

13. By Jean-Philippe Orsini

* merge with debian sid
* debian/control
   - replaced libcurl4-openssl-dev build dep to
     libcurl4-gnutls-dev. (Closes: #668180)
* New upstream release
    - Fixed sensor type displayed in sensor preferences. (Closes LP: #968912)
* debian/control
    - Switched to Standards-Version 3.9.3.
* debian/copyright
    - Changed end date to 2012.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed directory '.pc/LP1021900.patch'
2=== removed directory '.pc/LP1021900.patch/src'
3=== removed directory '.pc/LP1021900.patch/src/lib'
4=== removed file '.pc/LP1021900.patch/src/lib/psensor.c'
5--- .pc/LP1021900.patch/src/lib/psensor.c 2012-07-07 00:47:44 +0000
6+++ .pc/LP1021900.patch/src/lib/psensor.c 1970-01-01 00:00:00 +0000
7@@ -1,461 +0,0 @@
8-/*
9- * Copyright (C) 2010-2012 jeanfi@gmail.com
10- *
11- * This program is free software; you can redistribute it and/or
12- * modify it under the terms of the GNU General Public License as
13- * published by the Free Software Foundation; either version 2 of the
14- * License, or (at your option) any later version.
15- *
16- * This program is distributed in the hope that it will be useful, but
17- * WITHOUT ANY WARRANTY; without even the implied warranty of
18- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19- * General Public License for more details.
20- *
21- * You should have received a copy of the GNU General Public License
22- * along with this program; if not, write to the Free Software
23- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24- * 02110-1301 USA
25- */
26-#include <stdlib.h>
27-#include <string.h>
28-
29-#include <locale.h>
30-#include <libintl.h>
31-#define _(str) gettext(str)
32-
33-#include "hdd.h"
34-#include "psensor.h"
35-#include "lmsensor.h"
36-
37-#ifdef HAVE_GTOP
38-#include "cpu.h"
39-#endif
40-
41-
42-struct psensor *psensor_create(char *id, char *name,
43- unsigned int type, int values_max_length)
44-{
45- struct psensor *psensor
46- = (struct psensor *)malloc(sizeof(struct psensor));
47-
48- psensor->id = id;
49- psensor->name = name;
50- psensor->enabled = 1;
51- psensor->min = UNKNOWN_DBL_VALUE;
52- psensor->max = UNKNOWN_DBL_VALUE;
53-
54- psensor->type = type;
55-
56- psensor->values_max_length = values_max_length;
57- psensor->measures = measures_dbl_create(values_max_length);
58-
59- psensor->alarm_limit = 0;
60-
61- psensor->cb_alarm_raised = NULL;
62- psensor->cb_alarm_raised_data = NULL;
63- psensor->alarm_raised = 0;
64-
65- psensor->alarm_enabled = 0;
66-
67- psensor->url = NULL;
68-
69- psensor->color = NULL;
70-
71- return psensor;
72-}
73-
74-void psensor_values_resize(struct psensor *s, int new_size)
75-{
76- struct measure *new_ms, *cur_ms;
77- int cur_size;
78-
79- cur_size = s->values_max_length;
80- cur_ms = s->measures;
81- new_ms = measures_dbl_create(new_size);
82-
83- if (cur_ms) {
84- int i;
85- for (i = 0; i < new_size - 1 && i < cur_size - 1; i++)
86- measure_copy(&cur_ms[cur_size - i - 1],
87- &new_ms[new_size - i - 1]);
88-
89- measures_free(s->measures);
90- }
91-
92- s->values_max_length = new_size;
93- s->measures = new_ms;
94-}
95-
96-void psensor_free(struct psensor *sensor)
97-{
98- if (sensor) {
99- free(sensor->name);
100- free(sensor->id);
101-
102- if (sensor->color)
103- free(sensor->color);
104-
105- measures_free(sensor->measures);
106-
107- free(sensor->url);
108-
109- free(sensor);
110- }
111-}
112-
113-void psensor_list_free(struct psensor **sensors)
114-{
115- struct psensor **sensor_cur;
116-
117- if (sensors) {
118- sensor_cur = sensors;
119-
120- while (*sensor_cur) {
121- psensor_free(*sensor_cur);
122-
123- sensor_cur++;
124- }
125-
126- free(sensors);
127-
128- sensors = NULL;
129- }
130-}
131-
132-int psensor_list_size(struct psensor **sensors)
133-{
134- int size;
135- struct psensor **sensor_cur;
136-
137- if (!sensors)
138- return 0;
139-
140- size = 0;
141- sensor_cur = sensors;
142-
143- while (*sensor_cur) {
144- size++;
145- sensor_cur++;
146- }
147- return size;
148-}
149-
150-int psensor_list_contains_type(struct psensor **sensors, unsigned int type)
151-{
152- struct psensor **s;
153-
154- if (!sensors)
155- return 0;
156-
157- s = sensors;
158- while (*s) {
159- if ((*s)->type == type)
160- return 1;
161- s++;
162- }
163-
164- return 0;
165-}
166-
167-struct psensor **psensor_list_add(struct psensor **sensors,
168- struct psensor *sensor)
169-{
170- int size = psensor_list_size(sensors);
171-
172- struct psensor **result
173- = malloc((size + 1 + 1) * sizeof(struct psensor *));
174-
175- if (sensors)
176- memcpy(result, sensors, size * sizeof(struct psensor *));
177-
178- result[size] = sensor;
179- result[size + 1] = NULL;
180-
181- return result;
182-}
183-
184-struct psensor *psensor_list_get_by_id(struct psensor **sensors, const char *id)
185-{
186- struct psensor **sensors_cur = sensors;
187-
188- while (*sensors_cur) {
189- if (!strcmp((*sensors_cur)->id, id))
190- return *sensors_cur;
191-
192- sensors_cur++;
193- }
194-
195- return NULL;
196-}
197-
198-int is_temp_type(unsigned int type)
199-{
200- return type & SENSOR_TYPE_TEMP;
201-}
202-
203-int is_fan_type(unsigned int type)
204-{
205- return type & SENSOR_TYPE_FAN;
206-}
207-
208-char *psensor_value_to_string(unsigned int type, double value)
209-{
210- /* should not be possible to exceed 20 characters with temp or
211- rpm values the .x part is never displayed */
212- char *str = malloc(20);
213-
214- char *unit;
215-
216- if (is_temp_type(type))
217- unit = "C";
218- else if (type & SENSOR_TYPE_CPU_USAGE)
219- unit = "%";
220- else
221- unit = "";
222-
223- sprintf(str, "%.0f%s", value, unit);
224-
225- return str;
226-}
227-
228-void psensor_set_current_value(struct psensor *sensor, double value)
229-{
230- struct timeval tv;
231-
232- if (gettimeofday(&tv, NULL) != 0)
233- timerclear(&tv);
234-
235- psensor_set_current_measure(sensor, value, tv);
236-}
237-
238-void
239-psensor_set_current_measure(struct psensor *s,
240- double v, struct timeval tv)
241-{
242- memmove(s->measures,
243- &s->measures[1],
244- (s->values_max_length - 1) * sizeof(struct measure));
245-
246- s->measures[s->values_max_length - 1].value.d_num = v;
247- s->measures[s->values_max_length - 1].time = tv;
248-
249- if (s->min == UNKNOWN_DBL_VALUE || v < s->min)
250- s->min = v;
251-
252- if (s->max == UNKNOWN_DBL_VALUE || v > s->max)
253- s->max = v;
254-
255- if (s->alarm_limit && s->alarm_enabled) {
256- if (v > s->alarm_limit) {
257- if (!s->alarm_raised && s->cb_alarm_raised)
258- s->cb_alarm_raised(s,
259- s->cb_alarm_raised_data);
260-
261- s->alarm_raised = 1;
262- } else {
263- s->alarm_raised = 0;
264- }
265- }
266-}
267-
268-double psensor_get_current_value(struct psensor *sensor)
269-{
270- return sensor->measures[sensor->values_max_length - 1].value.d_num;
271-}
272-
273-struct measure *psensor_get_current_measure(struct psensor *sensor)
274-{
275- return &sensor->measures[sensor->values_max_length - 1];
276-}
277-
278-/*
279- Returns the minimal value of a given 'type' (SENSOR_TYPE_TEMP or
280- SENSOR_TYPE_FAN)
281- */
282-double get_min_value(struct psensor **sensors, int type)
283-{
284- double m = UNKNOWN_DBL_VALUE;
285- struct psensor **s = sensors;
286-
287- while (*s) {
288- struct psensor *sensor = *s;
289-
290- if (sensor->enabled && (sensor->type & type)) {
291- int i;
292- double t;
293-
294- for (i = 0; i < sensor->values_max_length; i++) {
295- t = sensor->measures[i].value.d_num;
296-
297- if (t == UNKNOWN_DBL_VALUE)
298- continue;
299-
300- if (m == UNKNOWN_DBL_VALUE || t < m)
301- m = t;
302- }
303- }
304- s++;
305- }
306-
307- return m;
308-}
309-
310-/*
311- Returns the maximal value of a given 'type' (SENSOR_TYPE_TEMP or
312- SENSOR_TYPE_FAN)
313- */
314-double get_max_value(struct psensor **sensors, int type)
315-{
316- double m = UNKNOWN_DBL_VALUE;
317- struct psensor **s = sensors;
318-
319- while (*s) {
320- struct psensor *sensor = *s;
321-
322- if (sensor->enabled && (sensor->type & type)) {
323- int i;
324- double t;
325- for (i = 0; i < sensor->values_max_length; i++) {
326- t = sensor->measures[i].value.d_num;
327-
328- if (t == UNKNOWN_DBL_VALUE)
329- continue;
330-
331- if (m == UNKNOWN_DBL_VALUE || t > m)
332- m = t;
333- }
334- }
335- s++;
336- }
337-
338- return m;
339-}
340-
341-double
342-psensor_get_max_current_value(struct psensor **sensors, unsigned int type)
343-{
344- double m = UNKNOWN_DBL_VALUE;
345- struct psensor **s_cur = sensors;
346-
347- while (*s_cur) {
348- struct psensor *s = *s_cur;
349-
350- if (s->enabled && (s->type & type)) {
351- double v = psensor_get_current_value(s);
352-
353- if (m == UNKNOWN_DBL_VALUE || v > m)
354- m = v;
355- }
356-
357- s_cur++;
358- }
359-
360- return m;
361-}
362-
363-double get_min_temp(struct psensor **sensors)
364-{
365- return get_min_value(sensors, SENSOR_TYPE_TEMP);
366-}
367-
368-double get_min_rpm(struct psensor **sensors)
369-{
370- return get_min_value(sensors, SENSOR_TYPE_FAN);
371-}
372-
373-double get_max_rpm(struct psensor **sensors)
374-{
375- return get_max_value(sensors, SENSOR_TYPE_FAN);
376-}
377-
378-double get_max_temp(struct psensor **sensors)
379-{
380- return get_max_value(sensors, SENSOR_TYPE_TEMP);
381-}
382-
383-struct psensor **get_all_sensors(int values_max_length)
384-{
385- struct psensor **psensors = NULL;
386- struct psensor **tmp_psensors;
387-
388- psensors = lmsensor_psensor_list_add(NULL, values_max_length);
389-
390- tmp_psensors = hdd_psensor_list_add(psensors, values_max_length);
391- if (tmp_psensors != psensors) {
392- free(psensors);
393- psensors = tmp_psensors;
394- }
395-
396- if (!psensors) { /* there is no detected sensors */
397- psensors = malloc(sizeof(struct psensor *));
398- *psensors = NULL;
399- }
400-
401- return psensors;
402-}
403-
404-const char *psensor_type_to_str(unsigned int type)
405-{
406- if ((type & SENSOR_TYPE_NVIDIA_TEMP) == SENSOR_TYPE_NVIDIA_TEMP)
407- return "NVidia GPU Temperature";
408-
409- if ((type & SENSOR_TYPE_AMD_TEMP) == SENSOR_TYPE_AMD_TEMP)
410- return "AMD GPU Temperature";
411-
412- if ((type & SENSOR_TYPE_AMD_FAN) == SENSOR_TYPE_AMD_FAN)
413- return "AMD GPU Fan Speed";
414-
415- if ((type & SENSOR_TYPE_HDD_TEMP) == SENSOR_TYPE_HDD_TEMP)
416- return "HDD Temperature";
417-
418- if (type & SENSOR_TYPE_CPU_USAGE)
419- return "CPU Usage";
420-
421- if (type & SENSOR_TYPE_TEMP)
422- return "Temperature";
423-
424- if (type & SENSOR_TYPE_FAN)
425- return "Fan";
426-
427- if (type & SENSOR_TYPE_REMOTE)
428- return "Remote";
429-
430- return "N/A"; /* should not be possible */
431-}
432-
433-
434-const char *psensor_type_to_unit_str(unsigned int type)
435-{
436- if (type & SENSOR_TYPE_TEMP)
437- return _("C");
438-
439- if (type & SENSOR_TYPE_FAN)
440- return _("RPM");
441-
442- if (type & SENSOR_TYPE_CPU_USAGE)
443- return _("%");
444-
445- return "N/A";
446-}
447-
448-void psensor_list_update_measures(struct psensor **sensors)
449-{
450- lmsensor_psensor_list_update(sensors);
451-
452-#ifdef HAVE_GTOP
453- cpu_psensor_list_update(sensors);
454-#endif
455-
456- if (psensor_list_contains_type(sensors, SENSOR_TYPE_HDD_TEMP))
457- hdd_psensor_list_update(sensors);
458-}
459-
460-void psensor_init()
461-{
462- lmsensor_init();
463-}
464-
465-void psensor_cleanup()
466-{
467- lmsensor_cleanup();
468-}
469
470=== removed directory '.pc/LP968912.patch'
471=== removed directory '.pc/LP968912.patch/src'
472=== removed directory '.pc/LP968912.patch/src/lib'
473=== removed file '.pc/LP968912.patch/src/lib/psensor.c'
474--- .pc/LP968912.patch/src/lib/psensor.c 2012-03-30 09:07:58 +0000
475+++ .pc/LP968912.patch/src/lib/psensor.c 1970-01-01 00:00:00 +0000
476@@ -1,461 +0,0 @@
477-/*
478- * Copyright (C) 2010-2011 jeanfi@gmail.com
479- *
480- * This program is free software; you can redistribute it and/or
481- * modify it under the terms of the GNU General Public License as
482- * published by the Free Software Foundation; either version 2 of the
483- * License, or (at your option) any later version.
484- *
485- * This program is distributed in the hope that it will be useful, but
486- * WITHOUT ANY WARRANTY; without even the implied warranty of
487- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
488- * General Public License for more details.
489- *
490- * You should have received a copy of the GNU General Public License
491- * along with this program; if not, write to the Free Software
492- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
493- * 02110-1301 USA
494- */
495-#include <stdlib.h>
496-#include <string.h>
497-
498-#include <locale.h>
499-#include <libintl.h>
500-#define _(str) gettext(str)
501-
502-#include "hdd.h"
503-#include "psensor.h"
504-#include "lmsensor.h"
505-
506-#ifdef HAVE_GTOP
507-#include "cpu.h"
508-#endif
509-
510-
511-struct psensor *psensor_create(char *id, char *name,
512- unsigned int type, int values_max_length)
513-{
514- struct psensor *psensor
515- = (struct psensor *)malloc(sizeof(struct psensor));
516-
517- psensor->id = id;
518- psensor->name = name;
519- psensor->enabled = 1;
520- psensor->min = UNKNOWN_DBL_VALUE;
521- psensor->max = UNKNOWN_DBL_VALUE;
522-
523- psensor->type = type;
524-
525- psensor->values_max_length = values_max_length;
526- psensor->measures = measures_dbl_create(values_max_length);
527-
528- psensor->alarm_limit = 0;
529-
530- psensor->cb_alarm_raised = NULL;
531- psensor->cb_alarm_raised_data = NULL;
532- psensor->alarm_raised = 0;
533-
534- psensor->alarm_enabled = 0;
535-
536- psensor->url = NULL;
537-
538- psensor->color = NULL;
539-
540- return psensor;
541-}
542-
543-void psensor_values_resize(struct psensor *s, int new_size)
544-{
545- struct measure *new_ms, *cur_ms;
546- int cur_size;
547-
548- cur_size = s->values_max_length;
549- cur_ms = s->measures;
550- new_ms = measures_dbl_create(new_size);
551-
552- if (cur_ms) {
553- int i;
554- for (i = 0; i < new_size - 1 && i < cur_size - 1; i++)
555- measure_copy(&cur_ms[cur_size - i - 1],
556- &new_ms[new_size - i - 1]);
557-
558- measures_free(s->measures);
559- }
560-
561- s->values_max_length = new_size;
562- s->measures = new_ms;
563-}
564-
565-void psensor_free(struct psensor *sensor)
566-{
567- if (sensor) {
568- free(sensor->name);
569- free(sensor->id);
570-
571- if (sensor->color)
572- free(sensor->color);
573-
574- measures_free(sensor->measures);
575-
576- free(sensor->url);
577-
578- free(sensor);
579- }
580-}
581-
582-void psensor_list_free(struct psensor **sensors)
583-{
584- struct psensor **sensor_cur;
585-
586- if (sensors) {
587- sensor_cur = sensors;
588-
589- while (*sensor_cur) {
590- psensor_free(*sensor_cur);
591-
592- sensor_cur++;
593- }
594-
595- free(sensors);
596-
597- sensors = NULL;
598- }
599-}
600-
601-int psensor_list_size(struct psensor **sensors)
602-{
603- int size;
604- struct psensor **sensor_cur;
605-
606- if (!sensors)
607- return 0;
608-
609- size = 0;
610- sensor_cur = sensors;
611-
612- while (*sensor_cur) {
613- size++;
614- sensor_cur++;
615- }
616- return size;
617-}
618-
619-int psensor_list_contains_type(struct psensor **sensors, unsigned int type)
620-{
621- struct psensor **s;
622-
623- if (!sensors)
624- return 0;
625-
626- s = sensors;
627- while (*s) {
628- if ((*s)->type == type)
629- return 1;
630- s++;
631- }
632-
633- return 0;
634-}
635-
636-struct psensor **psensor_list_add(struct psensor **sensors,
637- struct psensor *sensor)
638-{
639- int size = psensor_list_size(sensors);
640-
641- struct psensor **result
642- = malloc((size + 1 + 1) * sizeof(struct psensor *));
643-
644- if (sensors)
645- memcpy(result, sensors, size * sizeof(struct psensor *));
646-
647- result[size] = sensor;
648- result[size + 1] = NULL;
649-
650- return result;
651-}
652-
653-struct psensor *psensor_list_get_by_id(struct psensor **sensors, const char *id)
654-{
655- struct psensor **sensors_cur = sensors;
656-
657- while (*sensors_cur) {
658- if (!strcmp((*sensors_cur)->id, id))
659- return *sensors_cur;
660-
661- sensors_cur++;
662- }
663-
664- return NULL;
665-}
666-
667-int is_temp_type(unsigned int type)
668-{
669- return type & SENSOR_TYPE_TEMP;
670-}
671-
672-int is_fan_type(unsigned int type)
673-{
674- return type & SENSOR_TYPE_FAN;
675-}
676-
677-char *psensor_value_to_string(unsigned int type, double value)
678-{
679- /* should not be possible to exceed 20 characters with temp or
680- rpm values the .x part is never displayed */
681- char *str = malloc(20);
682-
683- char *unit;
684-
685- if (is_temp_type(type))
686- unit = "C";
687- else if (type & SENSOR_TYPE_CPU_USAGE)
688- unit = "%";
689- else
690- unit = "";
691-
692- sprintf(str, "%.0f%s", value, unit);
693-
694- return str;
695-}
696-
697-void psensor_set_current_value(struct psensor *sensor, double value)
698-{
699- struct timeval tv;
700-
701- if (gettimeofday(&tv, NULL) != 0)
702- timerclear(&tv);
703-
704- psensor_set_current_measure(sensor, value, tv);
705-}
706-
707-void
708-psensor_set_current_measure(struct psensor *s,
709- double v, struct timeval tv)
710-{
711- memmove(s->measures,
712- &s->measures[1],
713- (s->values_max_length - 1) * sizeof(struct measure));
714-
715- s->measures[s->values_max_length - 1].value.d_num = v;
716- s->measures[s->values_max_length - 1].time = tv;
717-
718- if (s->min == UNKNOWN_DBL_VALUE || v < s->min)
719- s->min = v;
720-
721- if (s->max == UNKNOWN_DBL_VALUE || v > s->max)
722- s->max = v;
723-
724- if (s->alarm_limit && s->alarm_enabled) {
725- if (v > s->alarm_limit) {
726- if (!s->alarm_raised && s->cb_alarm_raised)
727- s->cb_alarm_raised(s,
728- s->cb_alarm_raised_data);
729-
730- s->alarm_raised = 1;
731- } else {
732- s->alarm_raised = 0;
733- }
734- }
735-}
736-
737-double psensor_get_current_value(struct psensor *sensor)
738-{
739- return sensor->measures[sensor->values_max_length - 1].value.d_num;
740-}
741-
742-struct measure *psensor_get_current_measure(struct psensor *sensor)
743-{
744- return &sensor->measures[sensor->values_max_length - 1];
745-}
746-
747-/*
748- Returns the minimal value of a given 'type' (SENSOR_TYPE_TEMP or
749- SENSOR_TYPE_FAN)
750- */
751-double get_min_value(struct psensor **sensors, int type)
752-{
753- double m = UNKNOWN_DBL_VALUE;
754- struct psensor **s = sensors;
755-
756- while (*s) {
757- struct psensor *sensor = *s;
758-
759- if (sensor->enabled && (sensor->type & type)) {
760- int i;
761- double t;
762-
763- for (i = 0; i < sensor->values_max_length; i++) {
764- t = sensor->measures[i].value.d_num;
765-
766- if (t == UNKNOWN_DBL_VALUE)
767- continue;
768-
769- if (m == UNKNOWN_DBL_VALUE || t < m)
770- m = t;
771- }
772- }
773- s++;
774- }
775-
776- return m;
777-}
778-
779-/*
780- Returns the maximal value of a given 'type' (SENSOR_TYPE_TEMP or
781- SENSOR_TYPE_FAN)
782- */
783-double get_max_value(struct psensor **sensors, int type)
784-{
785- double m = UNKNOWN_DBL_VALUE;
786- struct psensor **s = sensors;
787-
788- while (*s) {
789- struct psensor *sensor = *s;
790-
791- if (sensor->enabled && (sensor->type & type)) {
792- int i;
793- double t;
794- for (i = 0; i < sensor->values_max_length; i++) {
795- t = sensor->measures[i].value.d_num;
796-
797- if (t == UNKNOWN_DBL_VALUE)
798- continue;
799-
800- if (m == UNKNOWN_DBL_VALUE || t > m)
801- m = t;
802- }
803- }
804- s++;
805- }
806-
807- return m;
808-}
809-
810-double
811-psensor_get_max_current_value(struct psensor **sensors, unsigned int type)
812-{
813- double m = UNKNOWN_DBL_VALUE;
814- struct psensor **s_cur = sensors;
815-
816- while (*s_cur) {
817- struct psensor *s = *s_cur;
818-
819- if (s->enabled && (s->type & type)) {
820- double v = psensor_get_current_value(s);
821-
822- if (m == UNKNOWN_DBL_VALUE || v > m)
823- m = v;
824- }
825-
826- s_cur++;
827- }
828-
829- return m;
830-}
831-
832-double get_min_temp(struct psensor **sensors)
833-{
834- return get_min_value(sensors, SENSOR_TYPE_TEMP);
835-}
836-
837-double get_min_rpm(struct psensor **sensors)
838-{
839- return get_min_value(sensors, SENSOR_TYPE_FAN);
840-}
841-
842-double get_max_rpm(struct psensor **sensors)
843-{
844- return get_max_value(sensors, SENSOR_TYPE_FAN);
845-}
846-
847-double get_max_temp(struct psensor **sensors)
848-{
849- return get_max_value(sensors, SENSOR_TYPE_TEMP);
850-}
851-
852-struct psensor **get_all_sensors(int values_max_length)
853-{
854- struct psensor **psensors = NULL;
855- struct psensor **tmp_psensors;
856-
857- psensors = lmsensor_psensor_list_add(NULL, values_max_length);
858-
859- tmp_psensors = hdd_psensor_list_add(psensors, values_max_length);
860- if (tmp_psensors != psensors) {
861- free(psensors);
862- psensors = tmp_psensors;
863- }
864-
865- if (!psensors) { /* there is no detected sensors */
866- psensors = malloc(sizeof(struct psensor *));
867- *psensors = NULL;
868- }
869-
870- return psensors;
871-}
872-
873-const char *psensor_type_to_str(unsigned int type)
874-{
875- if (type & SENSOR_TYPE_REMOTE)
876- return "Remote";
877-
878- if (type & SENSOR_TYPE_LMSENSOR_TEMP)
879- return "Temperature";
880-
881- if (type & SENSOR_TYPE_LMSENSOR_FAN)
882- return "Fan";
883-
884- if (type & SENSOR_TYPE_NVIDIA_TEMP)
885- return "NVidia GPU Temperature";
886-
887- if (type & SENSOR_TYPE_AMD_TEMP)
888- return "AMD GPU Temperature";
889-
890- if (type & SENSOR_TYPE_AMD_FAN)
891- return "AMD GPU Fan Speed";
892-
893- if (type & SENSOR_TYPE_HDD_TEMP)
894- return "HDD Temperature";
895-
896- if (type & SENSOR_TYPE_CPU_USAGE)
897- return "CPU Usage";
898-
899- return "N/A"; /* should not be possible */
900-}
901-
902-
903-const char *psensor_type_to_unit_str(unsigned int type)
904-{
905- if (type & SENSOR_TYPE_TEMP)
906- return _("C");
907-
908- if (type & SENSOR_TYPE_FAN)
909- return _("RPM");
910-
911- if (type & SENSOR_TYPE_CPU_USAGE)
912- return _("%");
913-
914- return "N/A";
915-}
916-
917-void psensor_list_update_measures(struct psensor **sensors)
918-{
919- lmsensor_psensor_list_update(sensors);
920-
921-#ifdef HAVE_GTOP
922- cpu_psensor_list_update(sensors);
923-#endif
924-
925- if (psensor_list_contains_type(sensors, SENSOR_TYPE_HDD_TEMP))
926- hdd_psensor_list_update(sensors);
927-}
928-
929-void psensor_init()
930-{
931- lmsensor_init();
932-}
933-
934-void psensor_cleanup()
935-{
936- lmsensor_cleanup();
937-}
938
939=== removed file '.pc/applied-patches'
940--- .pc/applied-patches 2012-07-07 00:47:44 +0000
941+++ .pc/applied-patches 1970-01-01 00:00:00 +0000
942@@ -1,3 +0,0 @@
943-drop_g_thread_init.patch
944-LP968912.patch
945-LP1021900.patch
946
947=== removed directory '.pc/drop_g_thread_init.patch'
948=== removed directory '.pc/drop_g_thread_init.patch/src'
949=== removed file '.pc/drop_g_thread_init.patch/src/main.c'
950--- .pc/drop_g_thread_init.patch/src/main.c 2012-01-21 22:41:34 +0000
951+++ .pc/drop_g_thread_init.patch/src/main.c 1970-01-01 00:00:00 +0000
952@@ -1,539 +0,0 @@
953-/*
954- * Copyright (C) 2010-2011 jeanfi@gmail.com
955- *
956- * This program is free software; you can redistribute it and/or
957- * modify it under the terms of the GNU General Public License as
958- * published by the Free Software Foundation; either version 2 of the
959- * License, or (at your option) any later version.
960- *
961- * This program is distributed in the hope that it will be useful, but
962- * WITHOUT ANY WARRANTY; without even the implied warranty of
963- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
964- * General Public License for more details.
965- *
966- * You should have received a copy of the GNU General Public License
967- * along with this program; if not, write to the Free Software
968- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
969- * 02110-1301 USA
970- */
971-#include <locale.h>
972-
973-#include <getopt.h>
974-#include <stdio.h>
975-#include <stdlib.h>
976-#include <string.h>
977-#include <unistd.h>
978-#include <sys/stat.h>
979-#include <sys/types.h>
980-
981-#include <gtk/gtk.h>
982-
983-#include "config.h"
984-
985-#include "cfg.h"
986-#include "psensor.h"
987-#include "graph.h"
988-#include "ui.h"
989-#include "ui_sensorlist.h"
990-#include "ui_color.h"
991-#include "lmsensor.h"
992-#include "ui_pref.h"
993-#include "ui_graph.h"
994-#include "ui_status.h"
995-
996-#ifdef HAVE_UNITY
997-#include "ui_unity.h"
998-#endif
999-
1000-#ifdef HAVE_NVIDIA
1001-#include "nvidia.h"
1002-#endif
1003-
1004-#ifdef HAVE_LIBATIADL
1005-#include "amd.h"
1006-#endif
1007-
1008-#ifdef HAVE_REMOTE_SUPPORT
1009-#include "rsensor.h"
1010-#endif
1011-
1012-#include "ui_appindicator.h"
1013-
1014-#ifdef HAVE_LIBNOTIFY
1015-#include "ui_notify.h"
1016-#endif
1017-
1018-#ifdef HAVE_GTOP
1019-#include "cpu.h"
1020-#endif
1021-
1022-#include "compat.h"
1023-
1024-static const char *program_name;
1025-
1026-static void print_version()
1027-{
1028- printf("psensor %s\n", VERSION);
1029- printf(_("Copyright (C) %s jeanfi@gmail.com\n"
1030- "License GPLv2: GNU GPL version 2 or later "
1031- "<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>\n"
1032- "This is free software: you are free to change and "
1033- " redistribute it.\n"
1034- "There is NO WARRANTY, to the extent permitted by law.\n"),
1035- "2010-2011");
1036-}
1037-
1038-static void print_help()
1039-{
1040- printf(_("Usage: %s [OPTION]...\n"), program_name);
1041-
1042- puts(_("psensor is a GTK application for monitoring hardware sensors, "
1043- "including temperatures and fan speeds."));
1044-
1045- puts("");
1046- puts(_("Options:"));
1047- puts(_(" -h, --help display this help and exit\n"
1048- " -v, --version display version information and exit"));
1049-
1050- puts("");
1051-
1052- puts(_(" -u, --url=URL "
1053- "the URL of the psensor-server, example: http://hostname:3131"));
1054-
1055- puts("");
1056-
1057- puts(_(" -d, --debug=LEVEL "
1058- "set the debug level, integer between 0 and 3"));
1059-
1060- puts("");
1061-
1062- printf(_("Report bugs to: %s\n"), PACKAGE_BUGREPORT);
1063- puts("");
1064- printf(_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_URL);
1065-}
1066-
1067-/*
1068- Updates the size of the sensor values if different than the
1069- configuration.
1070- */
1071-void
1072-update_psensor_values_size(struct psensor **sensors, struct config *cfg)
1073-{
1074- struct psensor **cur;
1075-
1076- cur = sensors;
1077- while (*cur) {
1078- struct psensor *s = *cur;
1079-
1080- if (s->values_max_length != cfg->sensor_values_max_length)
1081- psensor_values_resize(s,
1082- cfg->sensor_values_max_length);
1083-
1084- cur++;
1085- }
1086-}
1087-
1088-static void log_measures(struct psensor **sensors)
1089-{
1090- if (log_level == LOG_DEBUG)
1091- while (*sensors) {
1092- log_debug("Measure: %s %.2f",
1093- (*sensors)->name,
1094- psensor_get_current_value(*sensors));
1095-
1096- sensors++;
1097- }
1098-}
1099-
1100-void update_psensor_measures(struct ui_psensor *ui)
1101-{
1102- struct psensor **sensors = ui->sensors;
1103- struct config *cfg = ui->config;
1104-
1105- while (1) {
1106- g_mutex_lock(ui->sensors_mutex);
1107-
1108- if (!sensors)
1109- return;
1110-
1111- update_psensor_values_size(sensors, ui->config);
1112-
1113- psensor_list_update_measures(sensors);
1114-#ifdef HAVE_REMOTE_SUPPORT
1115- remote_psensor_list_update(sensors);
1116-#endif
1117-#ifdef HAVE_NVIDIA
1118- nvidia_psensor_list_update(sensors);
1119-#endif
1120-#ifdef HAVE_LIBATIADL
1121- amd_psensor_list_update(sensors);
1122-#endif
1123-
1124- log_measures(sensors);
1125-
1126- g_mutex_unlock(ui->sensors_mutex);
1127-
1128- sleep(cfg->sensor_update_interval);
1129- }
1130-}
1131-
1132-static void indicators_update(struct ui_psensor *ui)
1133-{
1134- struct psensor **sensor_cur = ui->sensors;
1135- unsigned int attention = 0;
1136-
1137- while (*sensor_cur) {
1138- struct psensor *s = *sensor_cur;
1139-
1140- if (s->alarm_enabled && s->alarm_raised) {
1141- attention = 1;
1142- break;
1143- }
1144-
1145- sensor_cur++;
1146- }
1147-
1148-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
1149- if (is_appindicator_supported())
1150- ui_appindicator_update(ui, attention);
1151-#endif
1152-
1153- if (is_status_supported())
1154- ui_status_update(ui, attention);
1155-}
1156-
1157-gboolean ui_refresh_thread(gpointer data)
1158-{
1159- struct config *cfg;
1160- gboolean ret;
1161- struct ui_psensor *ui = (struct ui_psensor *)data;
1162-
1163- ret = TRUE;
1164- cfg = ui->config;
1165-
1166- g_mutex_lock(ui->sensors_mutex);
1167-
1168- graph_update(ui->sensors, ui->w_graph, ui->config);
1169-
1170- ui_sensorlist_update(ui);
1171-
1172- if (is_appindicator_supported() || is_status_supported())
1173- indicators_update(ui);
1174-
1175-#ifdef HAVE_UNITY
1176- ui_unity_launcher_entry_update(ui->sensors,
1177- !cfg->unity_launcher_count_disabled);
1178-#endif
1179-
1180- if (ui->graph_update_interval != cfg->graph_update_interval) {
1181- ui->graph_update_interval = cfg->graph_update_interval;
1182- ret = FALSE;
1183- }
1184-
1185- g_mutex_unlock(ui->sensors_mutex);
1186-
1187- if (ret == FALSE)
1188- g_timeout_add(1000 * ui->graph_update_interval,
1189- ui_refresh_thread, ui);
1190-
1191- return ret;
1192-}
1193-
1194-void cb_alarm_raised(struct psensor *sensor, void *data)
1195-{
1196-#ifdef HAVE_LIBNOTIFY
1197- if (sensor->enabled)
1198- ui_notify(sensor, (struct ui_psensor *)data);
1199-#endif
1200-}
1201-
1202-static void associate_colors(struct psensor **sensors)
1203-{
1204- /* number of uniq colors */
1205-#define COLORS_COUNT 8
1206-
1207- unsigned int colors[COLORS_COUNT][3] = {
1208- {0x0000, 0x0000, 0x0000}, /* black */
1209- {0xffff, 0x0000, 0x0000}, /* red */
1210- {0x0000, 0.0000, 0xffff}, /* blue */
1211- {0x0000, 0xffff, 0x0000}, /* green */
1212-
1213- {0x7fff, 0x7fff, 0x7fff}, /* grey */
1214- {0x7fff, 0x0000, 0x0000}, /* dark red */
1215- {0x0000, 0x0000, 0x7fff}, /* dark blue */
1216- {0x0000, 0x7fff, 0x0000} /* dark green */
1217- };
1218-
1219- struct psensor **sensor_cur = sensors;
1220- int i = 0;
1221- while (*sensor_cur) {
1222- struct color default_color;
1223- color_set(&default_color,
1224- colors[i % COLORS_COUNT][0],
1225- colors[i % COLORS_COUNT][1],
1226- colors[i % COLORS_COUNT][2]);
1227-
1228- (*sensor_cur)->color
1229- = config_get_sensor_color((*sensor_cur)->id,
1230- &default_color);
1231-
1232- sensor_cur++;
1233- i++;
1234- }
1235-}
1236-
1237-static void
1238-associate_cb_alarm_raised(struct psensor **sensors, struct ui_psensor *ui)
1239-{
1240- struct psensor **sensor_cur = sensors;
1241- while (*sensor_cur) {
1242- struct psensor *s = *sensor_cur;
1243-
1244- s->cb_alarm_raised = cb_alarm_raised;
1245- s->cb_alarm_raised_data = ui;
1246-
1247- if (is_temp_type(s->type)) {
1248- s->alarm_limit
1249- = config_get_sensor_alarm_limit(s->id, 60);
1250- s->alarm_enabled
1251- = config_get_sensor_alarm_enabled(s->id);
1252- } else {
1253- s->alarm_limit = 0;
1254- s->alarm_enabled = 0;
1255- }
1256-
1257- sensor_cur++;
1258- }
1259-}
1260-
1261-static void associate_preferences(struct psensor **sensors)
1262-{
1263- struct psensor **sensor_cur = sensors;
1264- while (*sensor_cur) {
1265- char *n;
1266- struct psensor *s = *sensor_cur;
1267-
1268- s->enabled = config_is_sensor_enabled(s->id);
1269-
1270- n = config_get_sensor_name(s->id);
1271-
1272- if (n)
1273- s->name = n;
1274-
1275- sensor_cur++;
1276- }
1277-}
1278-
1279-static void log_init()
1280-{
1281- char *home, *path, *dir;
1282-
1283- home = getenv("HOME");
1284-
1285- if (!home)
1286- return ;
1287-
1288- dir = malloc(strlen(home)+1+strlen(".psensor")+1);
1289- sprintf(dir, "%s/%s", home, ".psensor");
1290- mkdir(dir, 0777);
1291-
1292- path = malloc(strlen(dir)+1+strlen("log")+1);
1293- sprintf(path, "%s/%s", dir, "log");
1294-
1295- log_open(path);
1296-
1297- free(dir);
1298- free(path);
1299-}
1300-
1301-static struct option long_options[] = {
1302- {"version", no_argument, 0, 'v'},
1303- {"help", no_argument, 0, 'h'},
1304- {"url", required_argument, 0, 'u'},
1305- {"debug", required_argument, 0, 'd'},
1306- {0, 0, 0, 0}
1307-};
1308-
1309-static gboolean initial_window_show(gpointer data)
1310-{
1311- struct ui_psensor *ui;
1312-
1313- log_debug("initial_window_show()");
1314-
1315- ui = (struct ui_psensor *)data;
1316-
1317- log_debug("is_status_supported: %d", is_status_supported());
1318- log_debug("is_appindicator_supported: %d",
1319- is_appindicator_supported());
1320- log_debug("hide_on_startup: %d", ui->config->hide_on_startup);
1321-
1322- if (!ui->config->hide_on_startup
1323- || (!is_appindicator_supported() && !is_status_supported()))
1324- ui_window_show(ui);
1325-
1326- ui_window_update(ui);
1327-
1328- return FALSE;
1329-}
1330-
1331-int main(int argc, char **argv)
1332-{
1333- struct ui_psensor ui;
1334- GError *error;
1335- GThread *thread;
1336- int optc, cmdok;
1337- char *url = NULL;
1338-
1339- program_name = argv[0];
1340-
1341- setlocale(LC_ALL, "");
1342-
1343-#if ENABLE_NLS
1344- bindtextdomain(PACKAGE, LOCALEDIR);
1345- textdomain(PACKAGE);
1346-#endif
1347-
1348- cmdok = 1;
1349- while ((optc = getopt_long(argc, argv, "vhd:u:", long_options,
1350- NULL)) != -1) {
1351- switch (optc) {
1352- case 'u':
1353- if (optarg)
1354- url = strdup(optarg);
1355- break;
1356- case 'h':
1357- print_help();
1358- exit(EXIT_SUCCESS);
1359- case 'v':
1360- print_version();
1361- exit(EXIT_SUCCESS);
1362- case 'd':
1363- log_level = atoi(optarg);
1364- log_printf(LOG_INFO, _("Enables debug mode."));
1365- break;
1366- default:
1367- cmdok = 0;
1368- break;
1369- }
1370- }
1371-
1372- if (!cmdok || optind != argc) {
1373- fprintf(stderr, _("Try `%s --help' for more information.\n"),
1374- program_name);
1375- exit(EXIT_FAILURE);
1376- }
1377-
1378- log_init();
1379-
1380- g_thread_init(NULL);
1381- gdk_threads_init();
1382- /* gdk_threads_enter(); */
1383-
1384- gtk_init(NULL, NULL);
1385-
1386- ui.sensors_mutex = g_mutex_new();
1387-
1388- config_init();
1389-
1390- ui.config = config_load();
1391-
1392- psensor_init();
1393-
1394- if (url) {
1395-#ifdef HAVE_REMOTE_SUPPORT
1396- rsensor_init();
1397- ui.sensors = get_remote_sensors(url, 600);
1398-#else
1399- fprintf(stderr,
1400- _("ERROR: Not compiled with remote sensor support.\n"));
1401- exit(EXIT_FAILURE);
1402-#endif
1403- } else {
1404- ui.sensors = get_all_sensors(600);
1405-#ifdef HAVE_NVIDIA
1406- ui.sensors = nvidia_psensor_list_add(ui.sensors, 600);
1407-#endif
1408-#ifdef HAVE_LIBATIADL
1409- ui.sensors = amd_psensor_list_add(ui.sensors, 600);
1410-#endif
1411-#ifdef HAVE_GTOP
1412- ui.sensors = cpu_psensor_list_add(ui.sensors, 600);
1413-#endif
1414- }
1415-
1416- associate_preferences(ui.sensors);
1417- associate_colors(ui.sensors);
1418- associate_cb_alarm_raised(ui.sensors, &ui);
1419-
1420-#if !defined(HAVE_APPINDICATOR) && !defined(HAVE_APPINDICATOR_029)
1421- ui_status_init(&ui);
1422-#endif
1423-
1424- /* main window */
1425- ui_window_create(&ui);
1426- ui.sensor_box = NULL;
1427-
1428- /* drawing box */
1429- ui.w_graph = ui_graph_create(&ui);
1430-
1431- /* sensor list */
1432- ui_sensorlist_create(&ui);
1433-
1434- thread = g_thread_create((GThreadFunc) update_psensor_measures,
1435- &ui, TRUE, &error);
1436-
1437- if (!thread)
1438- g_error_free(error);
1439-
1440- ui.graph_update_interval = ui.config->graph_update_interval;
1441-
1442- g_timeout_add(1000 * ui.graph_update_interval, ui_refresh_thread, &ui);
1443-
1444-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
1445- ui_appindicator_init(&ui);
1446-#endif
1447-
1448- /*
1449- * show the window as soon as all gtk events have been processed
1450- * in order to ensure that the status icon is attempted to be
1451- * drawn before. If not, there is no way to detect that it is
1452- * visible.
1453- */
1454- g_idle_add((GSourceFunc)initial_window_show, &ui);
1455-
1456- gdk_notify_startup_complete();
1457-
1458- /* main loop */
1459- gtk_main();
1460-
1461- g_mutex_lock(ui.sensors_mutex);
1462-
1463- psensor_cleanup();
1464-
1465-#ifdef HAVE_NVIDIA
1466- nvidia_cleanup();
1467-#endif
1468-#ifdef HAVE_LIBATIADL
1469- amd_cleanup();
1470-#endif
1471-#ifdef HAVE_REMOTE_SUPPORT
1472- rsensor_cleanup();
1473-#endif
1474-
1475- psensor_list_free(ui.sensors);
1476- ui.sensors = NULL;
1477-
1478-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
1479- ui_appindicator_cleanup();
1480-#endif
1481-
1482- ui_status_cleanup();
1483-
1484- g_mutex_unlock(ui.sensors_mutex);
1485-
1486- config_cleanup();
1487-
1488- log_close();
1489-
1490- return 0;
1491-}
1492
1493=== modified file 'NEWS'
1494--- NEWS 2011-12-22 21:11:44 +0000
1495+++ NEWS 2012-07-18 21:37:18 +0000
1496@@ -1,3 +1,10 @@
1497+* v0.6.2.17
1498+
1499+** psensor: fixed sensor type displayed in sensor preferences dialog.
1500+** psensor: fixed compilation error on 64bits with ATI/AMD GPU support.
1501+** psensor: not calling g_thread_init when compiled with glib >= 2.31.
1502+** changed copyright dates to 2012.
1503+
1504 * v0.6.2.16
1505
1506 ** psensor: removed -pedantic and ignores deprecation warnings
1507
1508=== modified file 'configure'
1509--- configure 2011-12-22 21:11:44 +0000
1510+++ configure 2012-07-18 21:37:18 +0000
1511@@ -1,6 +1,6 @@
1512 #! /bin/sh
1513 # Guess values for system-dependent variables and create Makefiles.
1514-# Generated by GNU Autoconf 2.68 for psensor 0.6.2.16.
1515+# Generated by GNU Autoconf 2.68 for psensor 0.6.2.17.
1516 #
1517 # Report bugs to <jeanfi@gmail.com>.
1518 #
1519@@ -560,8 +560,8 @@
1520 # Identity of this package.
1521 PACKAGE_NAME='psensor'
1522 PACKAGE_TARNAME='psensor'
1523-PACKAGE_VERSION='0.6.2.16'
1524-PACKAGE_STRING='psensor 0.6.2.16'
1525+PACKAGE_VERSION='0.6.2.17'
1526+PACKAGE_STRING='psensor 0.6.2.17'
1527 PACKAGE_BUGREPORT='jeanfi@gmail.com'
1528 PACKAGE_URL='http://wpitchoune.net/psensor'
1529
1530@@ -1355,7 +1355,7 @@
1531 # Omit some internal or obsolete options to make the list less imposing.
1532 # This message is too long to be a string in the A/UX 3.1 sh.
1533 cat <<_ACEOF
1534-\`configure' configures psensor 0.6.2.16 to adapt to many kinds of systems.
1535+\`configure' configures psensor 0.6.2.17 to adapt to many kinds of systems.
1536
1537 Usage: $0 [OPTION]... [VAR=VALUE]...
1538
1539@@ -1429,7 +1429,7 @@
1540
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543- short | recursive ) echo "Configuration of psensor 0.6.2.16:";;
1544+ short | recursive ) echo "Configuration of psensor 0.6.2.17:";;
1545 esac
1546 cat <<\_ACEOF
1547
1548@@ -1567,7 +1567,7 @@
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551 cat <<\_ACEOF
1552-psensor configure 0.6.2.16
1553+psensor configure 0.6.2.17
1554 generated by GNU Autoconf 2.68
1555
1556 Copyright (C) 2010 Free Software Foundation, Inc.
1557@@ -1990,7 +1990,7 @@
1558 This file contains any messages produced by compilers while
1559 running configure, to aid debugging if configure makes a mistake.
1560
1561-It was created by psensor $as_me 0.6.2.16, which was
1562+It was created by psensor $as_me 0.6.2.17, which was
1563 generated by GNU Autoconf 2.68. Invocation command line was
1564
1565 $ $0 $@
1566@@ -2807,7 +2807,7 @@
1567
1568 # Define the identity of the package.
1569 PACKAGE='psensor'
1570- VERSION='0.6.2.16'
1571+ VERSION='0.6.2.17'
1572
1573
1574 cat >>confdefs.h <<_ACEOF
1575@@ -9176,7 +9176,7 @@
1576 # report actual input values of CONFIG_FILES etc. instead of their
1577 # values after options handling.
1578 ac_log="
1579-This file was extended by psensor $as_me 0.6.2.16, which was
1580+This file was extended by psensor $as_me 0.6.2.17, which was
1581 generated by GNU Autoconf 2.68. Invocation command line was
1582
1583 CONFIG_FILES = $CONFIG_FILES
1584@@ -9243,7 +9243,7 @@
1585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1586 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1587 ac_cs_version="\\
1588-psensor config.status 0.6.2.16
1589+psensor config.status 0.6.2.17
1590 configured by $0, generated by GNU Autoconf 2.68,
1591 with options \\"\$ac_cs_config\\"
1592
1593
1594=== modified file 'configure.ac'
1595--- configure.ac 2011-12-22 21:11:44 +0000
1596+++ configure.ac 2012-07-18 21:37:18 +0000
1597@@ -2,7 +2,7 @@
1598 # Process this file with autoconf to produce a configure script.
1599
1600 AC_PREREQ([2.64])
1601-AC_INIT([psensor], [0.6.2.16],[jeanfi@gmail.com],[psensor],[http://wpitchoune.net/psensor])
1602+AC_INIT([psensor], [0.6.2.17],[jeanfi@gmail.com],[psensor],[http://wpitchoune.net/psensor])
1603
1604 AM_INIT_AUTOMAKE([-Wall -Werror gnu])
1605
1606
1607=== modified file 'debian/changelog'
1608--- debian/changelog 2012-07-07 00:47:44 +0000
1609+++ debian/changelog 2012-07-18 21:37:18 +0000
1610@@ -1,3 +1,33 @@
1611+psensor (0.6.2.17-2ubuntu1) quantal; urgency=low
1612+
1613+ * Merge from Debian testing. Remaining changes:
1614+ + Modifed build-dep to add NVidia and Application Indicator support
1615+ + Only add an nvidia-settings build-dep on i386 and amd6
1616+ + debian/patches/LP1021900.patch: added degree Celcius symbol
1617+ * Remove drop_g_thread_init.patch: fixed upstream since 0.6.2.17
1618+ * Remove LP968912.patch: fixed upstream since 0.6.2.17
1619+
1620+ -- Jean-Philippe Orsini <jeanfi@gmail.com> Fri, 13 Jul 2012 02:22:18 +0200
1621+
1622+psensor (0.6.2.17-2) unstable; urgency=low
1623+
1624+ * debian/control
1625+ - replaced libcurl4-openssl-dev build dep to
1626+ libcurl4-gnutls-dev. (Closes: #668180)
1627+
1628+ -- Jean-Philippe Orsini <jeanfi@gmail.com> Mon, 09 Apr 2012 12:15:54 -0400
1629+
1630+psensor (0.6.2.17-1) unstable; urgency=low
1631+
1632+ * New upstream release
1633+ - Fixed sensor type displayed in sensor preferences. (Closes LP: #968912)
1634+ * debian/control
1635+ - Switched to Standards-Version 3.9.3.
1636+ * debian/copyright
1637+ - Changed end date to 2012.
1638+
1639+ -- Jean-Philippe Orsini <jeanfi@gmail.com> Mon, 26 Mar 2012 05:14:19 -0400
1640+
1641 psensor (0.6.2.16-1ubuntu6) quantal; urgency=low
1642
1643 * debian/patches/LP1021900.patch
1644
1645=== modified file 'debian/control'
1646--- debian/control 2012-01-22 14:13:21 +0000
1647+++ debian/control 2012-07-18 21:37:18 +0000
1648@@ -10,7 +10,7 @@
1649 gettext,
1650 help2man,
1651 libappindicator3-dev,
1652- libcurl4-openssl-dev,
1653+ libcurl4-gnutls-dev,
1654 libgconf2-dev,
1655 libgtk-3-dev,
1656 libgtop2-dev,
1657@@ -21,7 +21,7 @@
1658 libunity-dev,
1659 nvidia-settings [i386 amd64],
1660 perl
1661-Standards-Version: 3.9.2
1662+Standards-Version: 3.9.3
1663 Homepage: http://wpitchoune.net/psensor
1664
1665 Package: psensor
1666
1667=== modified file 'debian/copyright'
1668--- debian/copyright 2011-12-22 21:11:44 +0000
1669+++ debian/copyright 2012-07-18 21:37:18 +0000
1670@@ -6,7 +6,7 @@
1671 Upstream Author: Jean-Philippe Orsini <jeanfi@gmail.com>
1672
1673 Copyright:
1674- Copyright (C) 2010-2011 by Jean-Philippe Orsini <jeanfi@gmail.com>
1675+ Copyright (C) 2010-2012 by Jean-Philippe Orsini <jeanfi@gmail.com>
1676
1677 License:
1678
1679@@ -28,7 +28,7 @@
1680 License can be found in `/usr/share/common-licenses/GPL-2'.
1681
1682 Packaging:
1683- Copyright (C) 2010-2011 by Jean-Philippe Orsini <jeanfi@gmail.com>
1684+ Copyright (C) 2010-2012 by Jean-Philippe Orsini <jeanfi@gmail.com>
1685 released under GNU General Public License version 2.
1686
1687
1688
1689=== removed file 'debian/patches/LP968912.patch'
1690--- debian/patches/LP968912.patch 2012-03-30 09:07:58 +0000
1691+++ debian/patches/LP968912.patch 1970-01-01 00:00:00 +0000
1692@@ -1,59 +0,0 @@
1693-Description: Fix display type in the UI and the preferences page
1694-Author: Jean-Philippe Orsini <jeanfi@gmail.com>
1695-Origin: Upstream
1696-Ubuntu-bug: https://bugs.launchpad.net/ubuntu/+source/psensor/+bug/968912
1697-Index: psensor-0.6.2.16/src/lib/psensor.c
1698-===================================================================
1699---- psensor-0.6.2.16.orig/src/lib/psensor.c 2011-12-23 02:53:29.000000000 +0100
1700-+++ psensor-0.6.2.16/src/lib/psensor.c 2012-03-30 09:07:09.894586637 +0200
1701-@@ -1,5 +1,5 @@
1702- /*
1703-- * Copyright (C) 2010-2011 jeanfi@gmail.com
1704-+ * Copyright (C) 2010-2012 jeanfi@gmail.com
1705- *
1706- * This program is free software; you can redistribute it and/or
1707- * modify it under the terms of the GNU General Public License as
1708-@@ -396,30 +396,30 @@
1709-
1710- const char *psensor_type_to_str(unsigned int type)
1711- {
1712-- if (type & SENSOR_TYPE_REMOTE)
1713-- return "Remote";
1714--
1715-- if (type & SENSOR_TYPE_LMSENSOR_TEMP)
1716-- return "Temperature";
1717--
1718-- if (type & SENSOR_TYPE_LMSENSOR_FAN)
1719-- return "Fan";
1720--
1721-- if (type & SENSOR_TYPE_NVIDIA_TEMP)
1722-+ if ((type & SENSOR_TYPE_NVIDIA_TEMP) == SENSOR_TYPE_NVIDIA_TEMP)
1723- return "NVidia GPU Temperature";
1724-
1725-- if (type & SENSOR_TYPE_AMD_TEMP)
1726-+ if ((type & SENSOR_TYPE_AMD_TEMP) == SENSOR_TYPE_AMD_TEMP)
1727- return "AMD GPU Temperature";
1728-
1729-- if (type & SENSOR_TYPE_AMD_FAN)
1730-+ if ((type & SENSOR_TYPE_AMD_FAN) == SENSOR_TYPE_AMD_FAN)
1731- return "AMD GPU Fan Speed";
1732-
1733-- if (type & SENSOR_TYPE_HDD_TEMP)
1734-+ if ((type & SENSOR_TYPE_HDD_TEMP) == SENSOR_TYPE_HDD_TEMP)
1735- return "HDD Temperature";
1736-
1737- if (type & SENSOR_TYPE_CPU_USAGE)
1738- return "CPU Usage";
1739-
1740-+ if (type & SENSOR_TYPE_TEMP)
1741-+ return "Temperature";
1742-+
1743-+ if (type & SENSOR_TYPE_FAN)
1744-+ return "Fan";
1745-+
1746-+ if (type & SENSOR_TYPE_REMOTE)
1747-+ return "Remote";
1748-+
1749- return "N/A"; /* should not be possible */
1750- }
1751-
1752
1753=== removed file 'debian/patches/drop_g_thread_init.patch'
1754--- debian/patches/drop_g_thread_init.patch 2012-01-21 22:41:34 +0000
1755+++ debian/patches/drop_g_thread_init.patch 1970-01-01 00:00:00 +0000
1756@@ -1,16 +0,0 @@
1757-Description: Drop deprecated g_thread_init call
1758- g_thread_init() is no longer needed in glib 2.32
1759-Author: Micah Gersten <micahg@ubuntu.com>
1760-
1761----
1762-
1763---- psensor-0.6.2.16.orig/src/main.c
1764-+++ psensor-0.6.2.16/src/main.c
1765-@@ -425,7 +425,6 @@ int main(int argc, char **argv)
1766-
1767- log_init();
1768-
1769-- g_thread_init(NULL);
1770- gdk_threads_init();
1771- /* gdk_threads_enter(); */
1772-
1773
1774=== modified file 'debian/patches/series'
1775--- debian/patches/series 2012-07-07 00:47:44 +0000
1776+++ debian/patches/series 2012-07-18 21:37:18 +0000
1777@@ -1,3 +1,1 @@
1778-drop_g_thread_init.patch
1779-LP968912.patch
1780 LP1021900.patch
1781
1782=== modified file 'po/fr.gmo'
1783Binary files po/fr.gmo 2011-12-01 01:57:00 +0000 and po/fr.gmo 2012-07-18 21:37:18 +0000 differ
1784=== modified file 'po/fr.po'
1785--- po/fr.po 2011-12-01 01:57:00 +0000
1786+++ po/fr.po 2012-07-18 21:37:18 +0000
1787@@ -7,7 +7,7 @@
1788 msgstr ""
1789 "Project-Id-Version: psensor 0.6.0.9\n"
1790 "Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
1791-"POT-Creation-Date: 2011-12-01 22:06+0100\n"
1792+"POT-Creation-Date: 2012-03-26 10:30+0200\n"
1793 "PO-Revision-Date: 2011-02-07 21:18+0100\n"
1794 "Last-Translator: Jean-Philippe Orsini <jeanfi@gmail.com>\n"
1795 "Language-Team: Oriya\n"
1796@@ -79,17 +79,17 @@
1797 msgid "%s home page: <%s>\n"
1798 msgstr "%s page d'acceuil: <%s>\n"
1799
1800-#: src/main.c:412
1801+#: src/main.c:425
1802 #, fuzzy
1803 msgid "Enables debug mode."
1804 msgstr "Activée"
1805
1806-#: src/main.c:421 src/server/server.c:352
1807+#: src/main.c:434 src/server/server.c:352
1808 #, c-format
1809 msgid "Try `%s --help' for more information.\n"
1810 msgstr "Essayez `%s --help' pour plus d'informations.\n"
1811
1812-#: src/main.c:448
1813+#: src/main.c:469
1814 #, c-format
1815 msgid "ERROR: Not compiled with remote sensor support.\n"
1816 msgstr ""
1817@@ -105,7 +105,7 @@
1818
1819 #: src/ui.c:83
1820 msgid ""
1821-"Copyright(c) 2010-2011\n"
1822+"Copyright(c) 2010-2012\n"
1823 "jeanfi@gmail.com"
1824 msgstr ""
1825
1826@@ -310,22 +310,22 @@
1827 msgid "URL: http://localhost:%d"
1828 msgstr "URL: http://localhost:%d\n"
1829
1830-#: src/lib/amd.c:159
1831+#: src/lib/amd.c:151
1832 #, c-format
1833 msgid "ERROR: ADL library not found!\n"
1834 msgstr ""
1835
1836-#: src/lib/amd.c:184
1837+#: src/lib/amd.c:176
1838 #, c-format
1839 msgid "ERROR: ADL's API is missing!\n"
1840 msgstr ""
1841
1842-#: src/lib/amd.c:193
1843+#: src/lib/amd.c:185
1844 #, fuzzy, c-format
1845 msgid "ERROR: ADL Initialization Error!\n"
1846 msgstr "ERREUR: échec de l'initialisation nvidia\n"
1847
1848-#: src/lib/amd.c:201
1849+#: src/lib/amd.c:193
1850 #, fuzzy, c-format
1851 msgid "ERROR: Cannot get the number of adapters!\n"
1852 msgstr ""
1853
1854=== modified file 'po/psensor.pot'
1855--- po/psensor.pot 2011-12-01 01:57:00 +0000
1856+++ po/psensor.pot 2012-07-18 21:37:18 +0000
1857@@ -8,7 +8,7 @@
1858 msgstr ""
1859 "Project-Id-Version: PACKAGE VERSION\n"
1860 "Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
1861-"POT-Creation-Date: 2011-12-01 22:06+0100\n"
1862+"POT-Creation-Date: 2012-03-26 10:30+0200\n"
1863 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1864 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1865 "Language-Team: LANGUAGE <LL@li.org>\n"
1866@@ -68,16 +68,16 @@
1867 msgid "%s home page: <%s>\n"
1868 msgstr ""
1869
1870-#: src/main.c:412
1871+#: src/main.c:425
1872 msgid "Enables debug mode."
1873 msgstr ""
1874
1875-#: src/main.c:421 src/server/server.c:352
1876+#: src/main.c:434 src/server/server.c:352
1877 #, c-format
1878 msgid "Try `%s --help' for more information.\n"
1879 msgstr ""
1880
1881-#: src/main.c:448
1882+#: src/main.c:469
1883 #, c-format
1884 msgid "ERROR: Not compiled with remote sensor support.\n"
1885 msgstr ""
1886@@ -88,7 +88,7 @@
1887
1888 #: src/ui.c:83
1889 msgid ""
1890-"Copyright(c) 2010-2011\n"
1891+"Copyright(c) 2010-2012\n"
1892 "jeanfi@gmail.com"
1893 msgstr ""
1894
1895@@ -273,23 +273,23 @@
1896 msgid "URL: http://localhost:%d"
1897 msgstr ""
1898
1899-#: src/lib/amd.c:159
1900+#: src/lib/amd.c:151
1901 #, c-format
1902 msgid "ERROR: ADL library not found!\n"
1903 msgstr ""
1904
1905-#: src/lib/amd.c:184
1906+#: src/lib/amd.c:176
1907 #, c-format
1908 msgid "ERROR: ADL's API is missing!\n"
1909 msgstr ""
1910
1911+#: src/lib/amd.c:185
1912+#, c-format
1913+msgid "ERROR: ADL Initialization Error!\n"
1914+msgstr ""
1915+
1916 #: src/lib/amd.c:193
1917 #, c-format
1918-msgid "ERROR: ADL Initialization Error!\n"
1919-msgstr ""
1920-
1921-#: src/lib/amd.c:201
1922-#, c-format
1923 msgid "ERROR: Cannot get the number of adapters!\n"
1924 msgstr ""
1925
1926
1927=== modified file 'po/tr.gmo'
1928Binary files po/tr.gmo 2011-12-01 01:57:00 +0000 and po/tr.gmo 2012-07-18 21:37:18 +0000 differ
1929=== modified file 'po/tr.po'
1930--- po/tr.po 2011-12-01 01:57:00 +0000
1931+++ po/tr.po 2012-07-18 21:37:18 +0000
1932@@ -7,7 +7,7 @@
1933 msgstr ""
1934 "Project-Id-Version: psensor\n"
1935 "Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
1936-"POT-Creation-Date: 2011-12-01 22:06+0100\n"
1937+"POT-Creation-Date: 2012-03-26 10:30+0200\n"
1938 "PO-Revision-Date: 2011-04-10 13:11+0000\n"
1939 "Last-Translator: zeugma <Unknown>\n"
1940 "Language-Team: Turkish <tr@li.org>\n"
1941@@ -69,16 +69,16 @@
1942 msgid "%s home page: <%s>\n"
1943 msgstr "%s ana sayfa: <%s>\n"
1944
1945-#: src/main.c:412
1946+#: src/main.c:425
1947 msgid "Enables debug mode."
1948 msgstr ""
1949
1950-#: src/main.c:421 src/server/server.c:352
1951+#: src/main.c:434 src/server/server.c:352
1952 #, c-format
1953 msgid "Try `%s --help' for more information.\n"
1954 msgstr "Daha fazla bilgi için `%s --help' yazın.\n"
1955
1956-#: src/main.c:448
1957+#: src/main.c:469
1958 #, c-format
1959 msgid "ERROR: Not compiled with remote sensor support.\n"
1960 msgstr ""
1961@@ -89,7 +89,7 @@
1962
1963 #: src/ui.c:83
1964 msgid ""
1965-"Copyright(c) 2010-2011\n"
1966+"Copyright(c) 2010-2012\n"
1967 "jeanfi@gmail.com"
1968 msgstr ""
1969
1970@@ -278,23 +278,23 @@
1971 msgid "URL: http://localhost:%d"
1972 msgstr ""
1973
1974-#: src/lib/amd.c:159
1975+#: src/lib/amd.c:151
1976 #, c-format
1977 msgid "ERROR: ADL library not found!\n"
1978 msgstr ""
1979
1980-#: src/lib/amd.c:184
1981+#: src/lib/amd.c:176
1982 #, c-format
1983 msgid "ERROR: ADL's API is missing!\n"
1984 msgstr ""
1985
1986+#: src/lib/amd.c:185
1987+#, c-format
1988+msgid "ERROR: ADL Initialization Error!\n"
1989+msgstr ""
1990+
1991 #: src/lib/amd.c:193
1992 #, c-format
1993-msgid "ERROR: ADL Initialization Error!\n"
1994-msgstr ""
1995-
1996-#: src/lib/amd.c:201
1997-#, c-format
1998 msgid "ERROR: Cannot get the number of adapters!\n"
1999 msgstr ""
2000
2001
2002=== modified file 'po/zh_CN.gmo'
2003Binary files po/zh_CN.gmo 2011-12-01 01:57:00 +0000 and po/zh_CN.gmo 2012-07-18 21:37:18 +0000 differ
2004=== modified file 'po/zh_CN.po'
2005--- po/zh_CN.po 2011-12-01 01:57:00 +0000
2006+++ po/zh_CN.po 2012-07-18 21:37:18 +0000
2007@@ -7,7 +7,7 @@
2008 msgstr ""
2009 "Project-Id-Version: psensor 0.6.0.10\n"
2010 "Report-Msgid-Bugs-To: jeanfi@gmail.com\n"
2011-"POT-Creation-Date: 2011-12-01 22:06+0100\n"
2012+"POT-Creation-Date: 2012-03-26 10:30+0200\n"
2013 "PO-Revision-Date: 2011-06-06 08:57+0000\n"
2014 "Last-Translator: royclark <Unknown>\n"
2015 "Language-Team: Chinese (simplified)\n"
2016@@ -71,16 +71,16 @@
2017 msgid "%s home page: <%s>\n"
2018 msgstr ""
2019
2020-#: src/main.c:412
2021+#: src/main.c:425
2022 msgid "Enables debug mode."
2023 msgstr ""
2024
2025-#: src/main.c:421 src/server/server.c:352
2026+#: src/main.c:434 src/server/server.c:352
2027 #, c-format
2028 msgid "Try `%s --help' for more information.\n"
2029 msgstr ""
2030
2031-#: src/main.c:448
2032+#: src/main.c:469
2033 #, c-format
2034 msgid "ERROR: Not compiled with remote sensor support.\n"
2035 msgstr ""
2036@@ -92,7 +92,7 @@
2037
2038 #: src/ui.c:83
2039 msgid ""
2040-"Copyright(c) 2010-2011\n"
2041+"Copyright(c) 2010-2012\n"
2042 "jeanfi@gmail.com"
2043 msgstr ""
2044
2045@@ -280,23 +280,23 @@
2046 msgid "URL: http://localhost:%d"
2047 msgstr ""
2048
2049-#: src/lib/amd.c:159
2050+#: src/lib/amd.c:151
2051 #, c-format
2052 msgid "ERROR: ADL library not found!\n"
2053 msgstr ""
2054
2055-#: src/lib/amd.c:184
2056+#: src/lib/amd.c:176
2057 #, c-format
2058 msgid "ERROR: ADL's API is missing!\n"
2059 msgstr ""
2060
2061+#: src/lib/amd.c:185
2062+#, c-format
2063+msgid "ERROR: ADL Initialization Error!\n"
2064+msgstr ""
2065+
2066 #: src/lib/amd.c:193
2067 #, c-format
2068-msgid "ERROR: ADL Initialization Error!\n"
2069-msgstr ""
2070-
2071-#: src/lib/amd.c:201
2072-#, c-format
2073 msgid "ERROR: Cannot get the number of adapters!\n"
2074 msgstr ""
2075
2076
2077=== modified file 'src/cfg.c'
2078--- src/cfg.c 2011-11-25 02:56:22 +0000
2079+++ src/cfg.c 2012-07-18 21:37:18 +0000
2080@@ -1,5 +1,5 @@
2081 /*
2082- * Copyright (C) 2010-2011 jeanfi@gmail.com
2083+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2084 *
2085 * This program is free software; you can redistribute it and/or
2086 * modify it under the terms of the GNU General Public License as
2087
2088=== modified file 'src/cfg.h'
2089--- src/cfg.h 2011-11-25 02:56:22 +0000
2090+++ src/cfg.h 2012-07-18 21:37:18 +0000
2091@@ -1,5 +1,5 @@
2092 /*
2093- * Copyright (C) 2010-2011 jeanfi@gmail.com
2094+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2095 *
2096 * This program is free software; you can redistribute it and/or
2097 * modify it under the terms of the GNU General Public License as
2098
2099=== modified file 'src/compat.h'
2100--- src/compat.h 2011-11-25 02:56:22 +0000
2101+++ src/compat.h 2012-07-18 21:37:18 +0000
2102@@ -1,5 +1,5 @@
2103 /*
2104- * Copyright (C) 2010-2011 jeanfi@gmail.com
2105+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2106 *
2107 * This program is free software; you can redistribute it and/or
2108 * modify it under the terms of the GNU General Public License as
2109
2110=== modified file 'src/graph.c'
2111--- src/graph.c 2011-11-25 02:56:22 +0000
2112+++ src/graph.c 2012-07-18 21:37:18 +0000
2113@@ -1,5 +1,5 @@
2114 /*
2115- * Copyright (C) 2010-2011 jeanfi@gmail.com
2116+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2117 *
2118 * This program is free software; you can redistribute it and/or
2119 * modify it under the terms of the GNU General Public License as
2120
2121=== modified file 'src/graph.h'
2122--- src/graph.h 2011-11-25 02:56:22 +0000
2123+++ src/graph.h 2012-07-18 21:37:18 +0000
2124@@ -1,5 +1,5 @@
2125 /*
2126- * Copyright (C) 2010-2011 jeanfi@gmail.com
2127+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2128 *
2129 * This program is free software; you can redistribute it and/or
2130 * modify it under the terms of the GNU General Public License as
2131
2132=== modified file 'src/lib/amd.c'
2133--- src/lib/amd.c 2011-12-01 01:57:00 +0000
2134+++ src/lib/amd.c 2012-07-18 21:37:18 +0000
2135@@ -1,5 +1,6 @@
2136 /*
2137- * Copyright (C) 2010-2011 thgreasi@gmail.com, jeanfi@gmail.com
2138+ * Copyright (C) 2010-2011 thgreasi@gmail.com
2139+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2140 *
2141 * This program is free software; you can redistribute it and/or
2142 * modify it under the terms of the GNU General Public License as
2143@@ -64,15 +65,6 @@
2144 return lpbuffer;
2145 }
2146
2147-/* Optional Memory de-allocation function */
2148-static void __stdcall adl_main_memory_free(void **lpbuffer)
2149-{
2150- if (*lpbuffer) {
2151- free(*lpbuffer);
2152- *lpbuffer = NULL;
2153- }
2154-}
2155-
2156 static void *getprocaddress(void *plibrary, const char * name)
2157 {
2158 return dlsym(plibrary, name);
2159@@ -235,7 +227,7 @@
2160 active_amd_adapters[inumberadaptersactive-1] = iadapterindex;
2161 }
2162
2163- adl_main_memory_free((void **) &lpadapterinfo);
2164+ free(lpadapterinfo);
2165
2166 /* Each Adapter has one GPU temperature sensor and one fan
2167 control sensor */
2168
2169=== modified file 'src/lib/amd.h'
2170--- src/lib/amd.h 2011-11-25 02:56:22 +0000
2171+++ src/lib/amd.h 2012-07-18 21:37:18 +0000
2172@@ -1,5 +1,6 @@
2173 /*
2174- * Copyright (C) 2010-2011 thgreasi@gmail.com, jeanfi@gmail.com
2175+ * Copyright (C) 2010-2011 thgreasi@gmail.com
2176+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2177 *
2178 * This program is free software; you can redistribute it and/or
2179 * modify it under the terms of the GNU General Public License as
2180
2181=== modified file 'src/lib/color.c'
2182--- src/lib/color.c 2011-11-25 02:56:22 +0000
2183+++ src/lib/color.c 2012-07-18 21:37:18 +0000
2184@@ -1,5 +1,5 @@
2185 /*
2186- * Copyright (C) 2010-2011 jeanfi@gmail.com
2187+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2188 *
2189 * This program is free software; you can redistribute it and/or
2190 * modify it under the terms of the GNU General Public License as
2191
2192=== modified file 'src/lib/color.h'
2193--- src/lib/color.h 2011-11-25 02:56:22 +0000
2194+++ src/lib/color.h 2012-07-18 21:37:18 +0000
2195@@ -1,5 +1,5 @@
2196 /*
2197- * Copyright (C) 2010-2011 jeanfi@gmail.com
2198+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2199 *
2200 * This program is free software; you can redistribute it and/or
2201 * modify it under the terms of the GNU General Public License as
2202
2203=== modified file 'src/lib/cpu.c'
2204--- src/lib/cpu.c 2011-11-25 02:56:22 +0000
2205+++ src/lib/cpu.c 2012-07-18 21:37:18 +0000
2206@@ -1,5 +1,5 @@
2207 /*
2208- * Copyright (C) 2010-2011 jeanfi@gmail.com
2209+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2210 *
2211 * This program is free software; you can redistribute it and/or
2212 * modify it under the terms of the GNU General Public License as
2213
2214=== modified file 'src/lib/cpu.h'
2215--- src/lib/cpu.h 2011-11-25 02:56:22 +0000
2216+++ src/lib/cpu.h 2012-07-18 21:37:18 +0000
2217@@ -1,5 +1,5 @@
2218 /*
2219- * Copyright (C) 2010-2011 jeanfi@gmail.com
2220+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2221 *
2222 * This program is free software; you can redistribute it and/or
2223 * modify it under the terms of the GNU General Public License as
2224
2225=== modified file 'src/lib/hdd.c'
2226--- src/lib/hdd.c 2011-11-25 02:56:22 +0000
2227+++ src/lib/hdd.c 2012-07-18 21:37:18 +0000
2228@@ -1,5 +1,5 @@
2229 /*
2230- * Copyright (C) 2010-2011 jeanfi@gmail.com
2231+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2232 *
2233 * This program is free software; you can redistribute it and/or
2234 * modify it under the terms of the GNU General Public License as
2235
2236=== modified file 'src/lib/hdd.h'
2237--- src/lib/hdd.h 2011-11-25 02:56:22 +0000
2238+++ src/lib/hdd.h 2012-07-18 21:37:18 +0000
2239@@ -1,5 +1,5 @@
2240 /*
2241- * Copyright (C) 2010-2011 jeanfi@gmail.com
2242+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2243 *
2244 * This program is free software; you can redistribute it and/or
2245 * modify it under the terms of the GNU General Public License as
2246
2247=== modified file 'src/lib/lmsensor.c'
2248--- src/lib/lmsensor.c 2011-11-25 02:56:22 +0000
2249+++ src/lib/lmsensor.c 2012-07-18 21:37:18 +0000
2250@@ -1,5 +1,5 @@
2251 /*
2252- * Copyright (C) 2010-2011 jeanfi@gmail.com
2253+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2254 *
2255 * This program is free software; you can redistribute it and/or
2256 * modify it under the terms of the GNU General Public License as
2257
2258=== modified file 'src/lib/lmsensor.h'
2259--- src/lib/lmsensor.h 2011-11-25 02:56:22 +0000
2260+++ src/lib/lmsensor.h 2012-07-18 21:37:18 +0000
2261@@ -1,5 +1,5 @@
2262 /*
2263- * Copyright (C) 2010-2011 jeanfi@gmail.com
2264+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2265 *
2266 * This program is free software; you can redistribute it and/or
2267 * modify it under the terms of the GNU General Public License as
2268
2269=== modified file 'src/lib/log.c'
2270--- src/lib/log.c 2011-11-25 02:56:22 +0000
2271+++ src/lib/log.c 2012-07-18 21:37:18 +0000
2272@@ -1,5 +1,5 @@
2273 /*
2274- * Copyright (C) 2010-2011 jeanfi@gmail.com
2275+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2276 *
2277 * This program is free software; you can redistribute it and/or
2278 * modify it under the terms of the GNU General Public License as
2279
2280=== modified file 'src/lib/log.h'
2281--- src/lib/log.h 2011-11-25 02:56:22 +0000
2282+++ src/lib/log.h 2012-07-18 21:37:18 +0000
2283@@ -1,5 +1,5 @@
2284 /*
2285- * Copyright (C) 2010-2011 jeanfi@gmail.com
2286+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2287 *
2288 * This program is free software; you can redistribute it and/or
2289 * modify it under the terms of the GNU General Public License as
2290
2291=== modified file 'src/lib/measure.c'
2292--- src/lib/measure.c 2011-11-25 02:56:22 +0000
2293+++ src/lib/measure.c 2012-07-18 21:37:18 +0000
2294@@ -1,5 +1,5 @@
2295 /*
2296- * Copyright (C) 2010-2011 jeanfi@gmail.com
2297+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2298 *
2299 * This program is free software; you can redistribute it and/or
2300 * modify it under the terms of the GNU General Public License as
2301
2302=== modified file 'src/lib/measure.h'
2303--- src/lib/measure.h 2011-11-25 02:56:22 +0000
2304+++ src/lib/measure.h 2012-07-18 21:37:18 +0000
2305@@ -1,5 +1,5 @@
2306 /*
2307- * Copyright (C) 2010-2011 jeanfi@gmail.com
2308+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2309 *
2310 * This program is free software; you can redistribute it and/or
2311 * modify it under the terms of the GNU General Public License as
2312
2313=== modified file 'src/lib/nvidia.c'
2314--- src/lib/nvidia.c 2011-11-25 02:56:22 +0000
2315+++ src/lib/nvidia.c 2012-07-18 21:37:18 +0000
2316@@ -1,5 +1,5 @@
2317 /*
2318- * Copyright (C) 2010-2011 jeanfi@gmail.com
2319+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2320 *
2321 * This program is free software; you can redistribute it and/or
2322 * modify it under the terms of the GNU General Public License as
2323
2324=== modified file 'src/lib/nvidia.h'
2325--- src/lib/nvidia.h 2011-11-25 02:56:22 +0000
2326+++ src/lib/nvidia.h 2012-07-18 21:37:18 +0000
2327@@ -1,5 +1,5 @@
2328 /*
2329- * Copyright (C) 2010-2011 jeanfi@gmail.com
2330+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2331 *
2332 * This program is free software; you can redistribute it and/or
2333 * modify it under the terms of the GNU General Public License as
2334
2335=== modified file 'src/lib/p_io.c'
2336--- src/lib/p_io.c 2011-11-25 02:56:22 +0000
2337+++ src/lib/p_io.c 2012-07-18 21:37:18 +0000
2338@@ -1,5 +1,5 @@
2339 /*
2340- * Copyright (C) 2010-2011 jeanfi@gmail.com
2341+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2342 *
2343 * This program is free software; you can redistribute it and/or
2344 * modify it under the terms of the GNU General Public License as
2345
2346=== modified file 'src/lib/p_io.h'
2347--- src/lib/p_io.h 2011-11-25 02:56:22 +0000
2348+++ src/lib/p_io.h 2012-07-18 21:37:18 +0000
2349@@ -1,5 +1,5 @@
2350 /*
2351- * Copyright (C) 2010-2011 jeanfi@gmail.com
2352+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2353 *
2354 * This program is free software; you can redistribute it and/or
2355 * modify it under the terms of the GNU General Public License as
2356
2357=== modified file 'src/lib/psensor.c'
2358--- src/lib/psensor.c 2012-07-07 00:47:44 +0000
2359+++ src/lib/psensor.c 2012-07-18 21:37:18 +0000
2360@@ -207,7 +207,7 @@
2361 char *unit;
2362
2363 if (is_temp_type(type))
2364- unit = "°C";
2365+ unit = "C";
2366 else if (type & SENSOR_TYPE_CPU_USAGE)
2367 unit = "%";
2368 else
2369@@ -427,7 +427,7 @@
2370 const char *psensor_type_to_unit_str(unsigned int type)
2371 {
2372 if (type & SENSOR_TYPE_TEMP)
2373- return "\302\260C";
2374+ return _("C");
2375
2376 if (type & SENSOR_TYPE_FAN)
2377 return _("RPM");
2378
2379=== modified file 'src/lib/psensor.h'
2380--- src/lib/psensor.h 2011-11-25 02:56:22 +0000
2381+++ src/lib/psensor.h 2012-07-18 21:37:18 +0000
2382@@ -1,5 +1,5 @@
2383 /*
2384- * Copyright (C) 2010-2011 jeanfi@gmail.com
2385+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2386 *
2387 * This program is free software; you can redistribute it and/or
2388 * modify it under the terms of the GNU General Public License as
2389
2390=== modified file 'src/lib/psensor_json.c'
2391--- src/lib/psensor_json.c 2011-11-25 02:56:22 +0000
2392+++ src/lib/psensor_json.c 2012-07-18 21:37:18 +0000
2393@@ -1,5 +1,5 @@
2394 /*
2395- * Copyright (C) 2010-2011 jeanfi@gmail.com
2396+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2397 *
2398 * This program is free software; you can redistribute it and/or
2399 * modify it under the terms of the GNU General Public License as
2400
2401=== modified file 'src/lib/psensor_json.h'
2402--- src/lib/psensor_json.h 2011-11-25 02:56:22 +0000
2403+++ src/lib/psensor_json.h 2012-07-18 21:37:18 +0000
2404@@ -1,5 +1,5 @@
2405 /*
2406- * Copyright (C) 2010-2011 jeanfi@gmail.com
2407+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2408 *
2409 * This program is free software; you can redistribute it and/or
2410 * modify it under the terms of the GNU General Public License as
2411
2412=== modified file 'src/lib/url.c'
2413--- src/lib/url.c 2011-12-01 01:57:00 +0000
2414+++ src/lib/url.c 2012-07-18 21:37:18 +0000
2415@@ -1,5 +1,5 @@
2416 /*
2417- * Copyright (C) 2010-2011 jeanfi@gmail.com
2418+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2419 *
2420 * This program is free software; you can redistribute it and/or
2421 * modify it under the terms of the GNU General Public License as
2422
2423=== modified file 'src/lib/url.h'
2424--- src/lib/url.h 2011-11-25 02:56:22 +0000
2425+++ src/lib/url.h 2012-07-18 21:37:18 +0000
2426@@ -1,5 +1,5 @@
2427 /*
2428- * Copyright (C) 2010-2011 jeanfi@gmail.com
2429+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2430 *
2431 * This program is free software; you can redistribute it and/or
2432 * modify it under the terms of the GNU General Public License as
2433
2434=== modified file 'src/main.c'
2435--- src/main.c 2012-01-21 22:41:34 +0000
2436+++ src/main.c 2012-07-18 21:37:18 +0000
2437@@ -1,5 +1,5 @@
2438 /*
2439- * Copyright (C) 2010-2011 jeanfi@gmail.com
2440+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2441 *
2442 * This program is free software; you can redistribute it and/or
2443 * modify it under the terms of the GNU General Public License as
2444@@ -80,7 +80,7 @@
2445 "This is free software: you are free to change and "
2446 " redistribute it.\n"
2447 "There is NO WARRANTY, to the extent permitted by law.\n"),
2448- "2010-2011");
2449+ "2010-2012");
2450 }
2451
2452 static void print_help()
2453@@ -376,6 +376,19 @@
2454 return FALSE;
2455 }
2456
2457+static void log_glib_info()
2458+{
2459+ log_debug("Compiled with GLib %d.%d.%d",
2460+ GLIB_MAJOR_VERSION,
2461+ GLIB_MINOR_VERSION,
2462+ GLIB_MICRO_VERSION);
2463+
2464+ log_debug("Running with GLib %d.%d.%d",
2465+ glib_major_version,
2466+ glib_minor_version,
2467+ glib_micro_version);
2468+}
2469+
2470 int main(int argc, char **argv)
2471 {
2472 struct ui_psensor ui;
2473@@ -425,8 +438,17 @@
2474
2475 log_init();
2476
2477+ log_glib_info();
2478+#if !(GLIB_CHECK_VERSION(2, 31, 0))
2479+ /*
2480+ * Since GLib 2.31 g_thread_init call is deprecated and not
2481+ * needed.
2482+ */
2483+ log_debug("Calling g_thread_init(NULL)");
2484+ g_thread_init(NULL);
2485+#endif
2486+
2487 gdk_threads_init();
2488- /* gdk_threads_enter(); */
2489
2490 gtk_init(NULL, NULL);
2491
2492
2493=== modified file 'src/psensor.1'
2494--- src/psensor.1 2011-12-22 21:11:44 +0000
2495+++ src/psensor.1 2012-07-18 21:37:18 +0000
2496@@ -1,5 +1,5 @@
2497 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4.
2498-.TH PSENSOR "1" "December 2011" "psensor 0.6.2.16" "User Commands"
2499+.TH PSENSOR "1" "March 2012" "psensor 0.6.2.17" "User Commands"
2500 .SH NAME
2501 psensor \- Temperature monitoring application
2502 .SH SYNOPSIS
2503@@ -60,7 +60,7 @@
2504 .PP
2505 psensor home page: <http://wpitchoune.net/psensor>
2506 .SH COPYRIGHT
2507-Copyright \(co 2010\-2011 jeanfi@gmail.com
2508+Copyright \(co 2010\-2012 jeanfi@gmail.com
2509 License GPLv2: GNU GPL version 2 or later <http://www.gnu.org/licenses/old\-licenses/gpl\-2.0.html>
2510 .br
2511 This is free software: you are free to change and redistribute it.
2512
2513=== modified file 'src/rsensor.c'
2514--- src/rsensor.c 2011-12-01 01:57:00 +0000
2515+++ src/rsensor.c 2012-07-18 21:37:18 +0000
2516@@ -1,5 +1,5 @@
2517 /*
2518- * Copyright (C) 2010-2011 jeanfi@gmail.com
2519+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2520 *
2521 * This program is free software; you can redistribute it and/or
2522 * modify it under the terms of the GNU General Public License as
2523
2524=== modified file 'src/rsensor.h'
2525--- src/rsensor.h 2011-11-25 02:56:22 +0000
2526+++ src/rsensor.h 2012-07-18 21:37:18 +0000
2527@@ -1,5 +1,5 @@
2528 /*
2529- * Copyright (C) 2010-2011 jeanfi@gmail.com
2530+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2531 *
2532 * This program is free software; you can redistribute it and/or
2533 * modify it under the terms of the GNU General Public License as
2534
2535=== modified file 'src/server/psensor-server.1'
2536--- src/server/psensor-server.1 2011-12-22 21:11:44 +0000
2537+++ src/server/psensor-server.1 2012-07-18 21:37:18 +0000
2538@@ -1,5 +1,5 @@
2539 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.4.
2540-.TH PSENSOR-SERVER "1" "December 2011" "psensor-server 0.6.2.16" "User Commands"
2541+.TH PSENSOR-SERVER "1" "March 2012" "psensor-server 0.6.2.17" "User Commands"
2542 .SH NAME
2543 psensor-server \- Temperature and system monitoring Web server
2544 .SH SYNOPSIS
2545@@ -86,7 +86,7 @@
2546 .PP
2547 psensor home page: <http://wpitchoune.net/psensor>
2548 .SH COPYRIGHT
2549-Copyright \(co 2010\-2011 jeanfi@gmail.com
2550+Copyright \(co 2010\-2012 jeanfi@gmail.com
2551 License GPLv2: GNU GPL version 2 or later <http://www.gnu.org/licenses/old\-licenses/gpl\-2.0.html>
2552 .br
2553 This is free software: you are free to change and redistribute it.
2554
2555=== modified file 'src/server/server.c'
2556--- src/server/server.c 2011-12-01 01:57:00 +0000
2557+++ src/server/server.c 2012-07-18 21:37:18 +0000
2558@@ -1,5 +1,5 @@
2559 /*
2560- * Copyright (C) 2010-2011 jeanfi@gmail.com
2561+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2562 *
2563 * This program is free software; you can redistribute it and/or
2564 * modify it under the terms of the GNU General Public License as
2565@@ -78,7 +78,7 @@
2566 "<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>\n"
2567 "This is free software: you are free to change and redistribute it.\n"
2568 "There is NO WARRANTY, to the extent permitted by law.\n"),
2569- "2010-2011");
2570+ "2010-2012");
2571 }
2572
2573 void print_help()
2574
2575=== modified file 'src/server/server.h'
2576--- src/server/server.h 2011-11-25 02:56:22 +0000
2577+++ src/server/server.h 2012-07-18 21:37:18 +0000
2578@@ -1,5 +1,5 @@
2579 /*
2580- * Copyright (C) 2010-2011 jeanfi@gmail.com
2581+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2582 *
2583 * This program is free software; you can redistribute it and/or
2584 * modify it under the terms of the GNU General Public License as
2585
2586=== modified file 'src/server/sysinfo.c'
2587--- src/server/sysinfo.c 2011-12-01 01:57:00 +0000
2588+++ src/server/sysinfo.c 2012-07-18 21:37:18 +0000
2589@@ -1,5 +1,5 @@
2590 /*
2591- * Copyright (C) 2010-2011 jeanfi@gmail.com
2592+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2593 *
2594 * This program is free software; you can redistribute it and/or
2595 * modify it under the terms of the GNU General Public License as
2596
2597=== modified file 'src/server/sysinfo.h'
2598--- src/server/sysinfo.h 2011-12-01 01:57:00 +0000
2599+++ src/server/sysinfo.h 2012-07-18 21:37:18 +0000
2600@@ -1,5 +1,5 @@
2601 /*
2602- * Copyright (C) 2010-2011 jeanfi@gmail.com
2603+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2604 *
2605 * This program is free software; you can redistribute it and/or
2606 * modify it under the terms of the GNU General Public License as
2607
2608=== modified file 'src/ui.c'
2609--- src/ui.c 2011-12-01 01:57:00 +0000
2610+++ src/ui.c 2012-07-18 21:37:18 +0000
2611@@ -1,5 +1,5 @@
2612 /*
2613- * Copyright (C) 2010-2011 jeanfi@gmail.com
2614+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2615 *
2616 * This program is free software; you can redistribute it and/or
2617 * modify it under the terms of the GNU General Public License as
2618@@ -80,7 +80,7 @@
2619 _("Psensor is a GTK+ application for monitoring "
2620 "hardware sensors"),
2621 "copyright",
2622- _("Copyright(c) 2010-2011\njeanfi@gmail.com"),
2623+ _("Copyright(c) 2010-2012\njeanfi@gmail.com"),
2624 "logo-icon-name", "psensor",
2625 "program-name", "Psensor",
2626 "title", _("About Psensor"),
2627
2628=== modified file 'src/ui.h'
2629--- src/ui.h 2011-11-25 02:56:22 +0000
2630+++ src/ui.h 2012-07-18 21:37:18 +0000
2631@@ -1,5 +1,5 @@
2632 /*
2633- * Copyright (C) 2010-2011 jeanfi@gmail.com
2634+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2635 *
2636 * This program is free software; you can redistribute it and/or
2637 * modify it under the terms of the GNU General Public License as
2638
2639=== modified file 'src/ui_appindicator.c'
2640--- src/ui_appindicator.c 2011-12-01 01:57:00 +0000
2641+++ src/ui_appindicator.c 2012-07-18 21:37:18 +0000
2642@@ -1,5 +1,5 @@
2643 /*
2644- * Copyright (C) 2010-2011 jeanfi@gmail.com
2645+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2646 *
2647 * This program is free software; you can redistribute it and/or
2648 * modify it under the terms of the GNU General Public License as
2649
2650=== modified file 'src/ui_appindicator.h'
2651--- src/ui_appindicator.h 2011-11-25 02:56:22 +0000
2652+++ src/ui_appindicator.h 2012-07-18 21:37:18 +0000
2653@@ -1,5 +1,5 @@
2654 /*
2655- * Copyright (C) 2010-2011 jeanfi@gmail.com
2656+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2657 *
2658 * This program is free software; you can redistribute it and/or
2659 * modify it under the terms of the GNU General Public License as
2660
2661=== modified file 'src/ui_color.c'
2662--- src/ui_color.c 2011-11-25 02:56:22 +0000
2663+++ src/ui_color.c 2012-07-18 21:37:18 +0000
2664@@ -1,5 +1,5 @@
2665 /*
2666- * Copyright (C) 2010-2011 jeanfi@gmail.com
2667+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2668 *
2669 * This program is free software; you can redistribute it and/or
2670 * modify it under the terms of the GNU General Public License as
2671
2672=== modified file 'src/ui_color.h'
2673--- src/ui_color.h 2011-11-25 02:56:22 +0000
2674+++ src/ui_color.h 2012-07-18 21:37:18 +0000
2675@@ -1,5 +1,5 @@
2676 /*
2677- * Copyright (C) 2010-2011 jeanfi@gmail.com
2678+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2679 *
2680 * This program is free software; you can redistribute it and/or
2681 * modify it under the terms of the GNU General Public License as
2682
2683=== modified file 'src/ui_graph.c'
2684--- src/ui_graph.c 2011-12-01 01:57:00 +0000
2685+++ src/ui_graph.c 2012-07-18 21:37:18 +0000
2686@@ -1,5 +1,5 @@
2687 /*
2688- * Copyright (C) 2010-2011 jeanfi@gmail.com
2689+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2690 *
2691 * This program is free software; you can redistribute it and/or
2692 * modify it under the terms of the GNU General Public License as
2693
2694=== modified file 'src/ui_graph.h'
2695--- src/ui_graph.h 2011-11-25 02:56:22 +0000
2696+++ src/ui_graph.h 2012-07-18 21:37:18 +0000
2697@@ -1,5 +1,5 @@
2698 /*
2699- * Copyright (C) 2010-2011 jeanfi@gmail.com
2700+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2701 *
2702 * This program is free software; you can redistribute it and/or
2703 * modify it under the terms of the GNU General Public License as
2704
2705=== modified file 'src/ui_notify.c'
2706--- src/ui_notify.c 2011-11-25 02:56:22 +0000
2707+++ src/ui_notify.c 2012-07-18 21:37:18 +0000
2708@@ -1,5 +1,5 @@
2709 /*
2710- * Copyright (C) 2010-2011 jeanfi@gmail.com
2711+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2712 *
2713 * This program is free software; you can redistribute it and/or
2714 * modify it under the terms of the GNU General Public License as
2715
2716=== modified file 'src/ui_notify.h'
2717--- src/ui_notify.h 2011-11-25 02:56:22 +0000
2718+++ src/ui_notify.h 2012-07-18 21:37:18 +0000
2719@@ -1,5 +1,5 @@
2720 /*
2721- * Copyright (C) 2010-2011 jeanfi@gmail.com
2722+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2723 *
2724 * This program is free software; you can redistribute it and/or
2725 * modify it under the terms of the GNU General Public License as
2726
2727=== modified file 'src/ui_pref.c'
2728--- src/ui_pref.c 2011-11-25 02:56:22 +0000
2729+++ src/ui_pref.c 2012-07-18 21:37:18 +0000
2730@@ -1,5 +1,5 @@
2731 /*
2732- * Copyright (C) 2010-2011 jeanfi@gmail.com
2733+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2734 *
2735 * This program is free software; you can redistribute it and/or
2736 * modify it under the terms of the GNU General Public License as
2737
2738=== modified file 'src/ui_pref.h'
2739--- src/ui_pref.h 2011-11-25 02:56:22 +0000
2740+++ src/ui_pref.h 2012-07-18 21:37:18 +0000
2741@@ -1,5 +1,5 @@
2742 /*
2743- * Copyright (C) 2010-2011 jeanfi@gmail.com
2744+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2745 *
2746 * This program is free software; you can redistribute it and/or
2747 * modify it under the terms of the GNU General Public License as
2748
2749=== modified file 'src/ui_sensorlist.c'
2750--- src/ui_sensorlist.c 2011-11-25 02:56:22 +0000
2751+++ src/ui_sensorlist.c 2012-07-18 21:37:18 +0000
2752@@ -1,5 +1,5 @@
2753 /*
2754- * Copyright (C) 2010-2011 jeanfi@gmail.com
2755+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2756 *
2757 * This program is free software; you can redistribute it and/or
2758 * modify it under the terms of the GNU General Public License as
2759
2760=== modified file 'src/ui_sensorlist.h'
2761--- src/ui_sensorlist.h 2011-11-25 02:56:22 +0000
2762+++ src/ui_sensorlist.h 2012-07-18 21:37:18 +0000
2763@@ -1,5 +1,5 @@
2764 /*
2765- * Copyright (C) 2010-2011 jeanfi@gmail.com
2766+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2767 *
2768 * This program is free software; you can redistribute it and/or
2769 * modify it under the terms of the GNU General Public License as
2770
2771=== modified file 'src/ui_sensorpref.c'
2772--- src/ui_sensorpref.c 2011-11-25 02:56:22 +0000
2773+++ src/ui_sensorpref.c 2012-07-18 21:37:18 +0000
2774@@ -1,5 +1,5 @@
2775 /*
2776- * Copyright (C) 2010-2011 jeanfi@gmail.com
2777+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2778 *
2779 * This program is free software; you can redistribute it and/or
2780 * modify it under the terms of the GNU General Public License as
2781
2782=== modified file 'src/ui_sensorpref.h'
2783--- src/ui_sensorpref.h 2011-11-25 02:56:22 +0000
2784+++ src/ui_sensorpref.h 2012-07-18 21:37:18 +0000
2785@@ -1,5 +1,5 @@
2786 /*
2787- * Copyright (C) 2010-2011 jeanfi@gmail.com
2788+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2789 *
2790 * This program is free software; you can redistribute it and/or
2791 * modify it under the terms of the GNU General Public License as
2792
2793=== modified file 'src/ui_status.c'
2794--- src/ui_status.c 2011-11-25 02:56:22 +0000
2795+++ src/ui_status.c 2012-07-18 21:37:18 +0000
2796@@ -1,5 +1,5 @@
2797 /*
2798- * Copyright (C) 2010-2011 jeanfi@gmail.com
2799+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2800 *
2801 * This program is free software; you can redistribute it and/or
2802 * modify it under the terms of the GNU General Public License as
2803
2804=== modified file 'src/ui_status.h'
2805--- src/ui_status.h 2011-11-25 02:56:22 +0000
2806+++ src/ui_status.h 2012-07-18 21:37:18 +0000
2807@@ -1,5 +1,5 @@
2808 /*
2809- * Copyright (C) 2010-2011 jeanfi@gmail.com
2810+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2811 *
2812 * This program is free software; you can redistribute it and/or
2813 * modify it under the terms of the GNU General Public License as
2814
2815=== modified file 'src/ui_unity.c'
2816--- src/ui_unity.c 2011-11-25 02:56:22 +0000
2817+++ src/ui_unity.c 2012-07-18 21:37:18 +0000
2818@@ -1,5 +1,5 @@
2819 /*
2820- * Copyright (C) 2010-2011 jeanfi@gmail.com
2821+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2822 *
2823 * This program is free software; you can redistribute it and/or
2824 * modify it under the terms of the GNU General Public License as
2825
2826=== modified file 'src/ui_unity.h'
2827--- src/ui_unity.h 2011-11-25 02:56:22 +0000
2828+++ src/ui_unity.h 2012-07-18 21:37:18 +0000
2829@@ -1,5 +1,5 @@
2830 /*
2831- * Copyright (C) 2010-2011 jeanfi@gmail.com
2832+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2833 *
2834 * This program is free software; you can redistribute it and/or
2835 * modify it under the terms of the GNU General Public License as
2836
2837=== modified file 'www/psensor.js'
2838--- www/psensor.js 2011-11-25 02:56:22 +0000
2839+++ www/psensor.js 2012-07-18 21:37:18 +0000
2840@@ -1,5 +1,5 @@
2841 /*
2842- * Copyright (C) 2010-2011 jeanfi@gmail.com
2843+ * Copyright (C) 2010-2012 jeanfi@gmail.com
2844 *
2845 * This program is free software; you can redistribute it and/or
2846 * modify it under the terms of the GNU General Public License as

Subscribers

People subscribed via source and target branches