mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-07 13:48:33 +00:00
Minor fix to reduce the size of a buffer
This commit is contained in:
parent
078a0df62d
commit
6785d7de83
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
|||
static void* doRun(void* ptr) {
|
||||
#ifdef __APPLE__
|
||||
// Mac OS X: must be set from within the thread (can't specify thread ID)
|
||||
char buf[MAX_PATH];
|
||||
char buf[32];
|
||||
snprintf(buf, sizeof(buf), "ThreadPool worker");
|
||||
if(pthread_setname_np(buf))
|
||||
ntop->getTrace()->traceEvent(TRACE_WARNING, "Unable to set pthread name %s", buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue