Skip to content
Snippets Groups Projects
Commit 1c0c886b authored by Zhang Huanjie's avatar Zhang Huanjie
Browse files

temp

parent ff1dafc4
Branches
No related tags found
No related merge requests found
......@@ -136,6 +136,14 @@ void getstat(void) {
if(ret>0) len+=ret;
}
if(fp!=NULL) fclose(fp);
/* Temp*/
fp= fopen("/sys/bus/platform/devices/coretemp.0/temp2_input","r");
if((fp!=NULL) && (fgets(buf,MAXLEN,fp)!=NULL) ){
ret=snprintf(sendbuf+len,MAXLEN-len,"temp=%s",buf);
if(ret>0) len+=ret;
}
if(fp!=NULL) fclose(fp);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment