mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
almost uname -m :)
This commit is contained in:
parent
34315a59ad
commit
1c438e9a05
1 changed files with 5 additions and 0 deletions
|
|
@ -178,6 +178,11 @@ _pingback (void *arg)
|
|||
}
|
||||
|
||||
if (_query_registry("Hardware\\Description\\System\\CentralProcessor\\0", "Identifier", val)) {
|
||||
// remove "Family X Model YY Stepping Z" tail
|
||||
size_t cut = val.find (" Family ");
|
||||
if (string::npos != cut) {
|
||||
val = val.substr (0, cut);
|
||||
}
|
||||
char* query = curl_easy_escape (c, val.c_str(), strlen (val.c_str()));
|
||||
url += "m=";
|
||||
url += query;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue