Changeset 1169 for trunk/packages


Ignore:
Timestamp:
Oct 1, 2008, 12:37:48 PM (16 years ago)
Author:
gah
Message:

add hostname to visualizer stats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/nanovis.cpp

    r1167 r1169  
    314314    Tcl_DStringAppend(&ds, buf, -1);
    315315
     316    gethostname(buf, BUFSIZ-1);
     317    buf[BUFSIZ-1] = '\0';
     318    Tcl_DStringAppend(&ds, "host=\"", -1);
     319    Tcl_DStringAppend(&ds, buf, -1);
     320    Tcl_DStringAppend(&ds, "\" ", -1);
     321
    316322    strcpy(buf, ctime(&stats.start.tv_sec));
    317 
    318323    buf[strlen(buf) - 1] = '\0';
    319324    Tcl_DStringAppend(&ds, "date=\"", -1);
Note: See TracChangeset for help on using the changeset viewer.