mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
rand command, beginning netcfg, consolidated some .c files
This commit is contained in:
@@ -96,7 +96,6 @@ int parse_proc_status(char *line)
|
||||
return(FALSE);
|
||||
}
|
||||
|
||||
char *cpufrom;
|
||||
int sentmodel;
|
||||
int physid,cpus,cores,addsiblings;
|
||||
|
||||
@@ -146,7 +145,7 @@ int parse_proc_cpuinfo(char *line)
|
||||
#ifdef DEBUG
|
||||
debug("(parse_proc_cpuinfo) model name = %s\n",omni);
|
||||
#endif
|
||||
to_user_q(cpufrom,"Cpu: %s\n",omni);
|
||||
to_user_q(global_from,"Cpu: %s\n",omni);
|
||||
sentmodel++;
|
||||
}
|
||||
else
|
||||
@@ -237,8 +236,7 @@ void do_cpuinfo(COMMAND_ARGS)
|
||||
return;
|
||||
#endif
|
||||
|
||||
debug("%s\n",from);
|
||||
cpufrom = from;
|
||||
global_from = from;
|
||||
sentmodel = 0;
|
||||
physid = -1;
|
||||
cpus = cores = addsiblings = 0;
|
||||
|
||||
Reference in New Issue
Block a user