le jeudi matin, c'est parfois difficile :)
This commit is contained in:
parent
474814ad11
commit
8da6c9ffd6
15
funcs.c
15
funcs.c
@ -36,3 +36,18 @@ return (double)tv.tv_sec + (double)tv.tv_usec / 1e6;
|
||||
|
||||
/* --------------------------------------------------------------- */
|
||||
|
||||
double get_loadavg(int foo)
|
||||
{
|
||||
FILE *fp;
|
||||
|
||||
if ( ! (fp=fopen("/proc/loadavg", "r")) ) {
|
||||
perror("read loadavg");
|
||||
return -42.51;
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
|
||||
return -42.51;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------- */
|
||||
|
18
temperhum.txt
Normal file
18
temperhum.txt
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
Après branchement du gadget USB, dmesg raconte :
|
||||
|
||||
usb 7-1: Manufacturer: RDing
|
||||
hidraw: raw HID events driver (C) Jiri Kosina
|
||||
usbcore: registered new interface driver usbhid
|
||||
usbhid: USB HID core driver
|
||||
input: RDing TEMPERHUM1V1.2 as /devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/0003:0C45:7402.0001/input/input13
|
||||
hid-generic 0003:0C45:7402.0001: input,hidraw0: USB HID v1.10 Keyboard [RDing TEMPERHUM1V1.2] on usb-0000:00:1d.1-1/input0
|
||||
hid-generic 0003:0C45:7402.0002: hiddev0,hidraw1: USB HID v1.10 Device [RDing TEMPERHUM1V1.2] on usb-0000:00:1d.1-1/input1
|
||||
|
||||
tth@debian:~/Essais/DD2-monitor$ ls -rtl /dev/hidraw*
|
||||
crw------- 1 root root 246, 0 Dec 6 11:04 /dev/hidraw0
|
||||
crw------- 1 root root 246, 1 Dec 6 11:04 /dev/hidraw1
|
||||
|
||||
Ça va pas être simple...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user