hardinfo

Check-in [0940fdba89]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:correct temperature interpretation in sysfs thermal zone.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0940fdba898ec455afdec8e19e8b5f2a2ac78581
User & Date: jamesbond 2015-02-21 03:02:02
Context
2015-04-07
13:51
ARM fixes. check-in: 8b8b4188f2 user: jamesbond tags: trunk
2015-02-21
03:02
correct temperature interpretation in sysfs thermal zone. check-in: 0940fdba89 user: jamesbond tags: trunk
2015-02-19
11:42
quote lsusb -v output so it is safe for hardinfo. check-in: 215d179605 user: jamesbond tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to modules/devices/sensors.c.

334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
		gchar *path =
		    g_strdup_printf("%s/%s/temp", path_tz, entry);
		gchar *contents;

		if (g_file_get_contents(path, &contents, NULL, NULL)) {
		    int temperature;

		    sscanf(contents, "temperature: %d C", &temperature);

		    temp = h_strdup_cprintf("\n%s=%d\302\260C\n",
					      temp, entry, temperature);

		    g_free(contents);
		}
	    }

	    if (*temp != '\0')
    	        sensors =







|

|
|







334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
		gchar *path =
		    g_strdup_printf("%s/%s/temp", path_tz, entry);
		gchar *contents;

		if (g_file_get_contents(path, &contents, NULL, NULL)) {
		    int temperature;

		    sscanf(contents, "%d", &temperature);

		    temp = h_strdup_cprintf("\n%s=%.2f\302\260C\n",
					      temp, entry, (1.0*temperature/1000));

		    g_free(contents);
		}
	    }

	    if (*temp != '\0')
    	        sensors =