Ignore:
Timestamp:
Nov 26, 2014 1:40:30 AM (8 years ago)
Author:
ldelgass
Message:

Don't add extra pid to stats log line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/trunk/Command.cpp

    r4488 r4794  
    846846    /* Use the initial client key value pairs as the parts for a generating
    847847     * a unique file name. */
    848     int f = getStatsFile(interp, objv[1]);
     848    int f = getStatsFile(objv[1]);
    849849    if (f < 0) {
    850850        Tcl_AppendResult(interp, "can't open stats file: ",
     
    867867        objPtr = Tcl_NewStringObj("pid", 3);
    868868        Tcl_ListObjAppendElement(interp, listObjPtr, objPtr);
    869         Tcl_ListObjAppendElement(interp, listObjPtr, Tcl_NewIntObj(getpid()));
     869        Tcl_ListObjAppendElement(interp, listObjPtr, Tcl_NewLongObj((long)g_stats.pid));
    870870        /* host */
    871871        objPtr = Tcl_NewStringObj("host", 4);
Note: See TracChangeset for help on using the changeset viewer.