Changeset 1014 for trunk/lib


Ignore:
Timestamp:
Jan 5, 2010, 9:22:59 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Fixes #439.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r1013 r1014  
    164164
    165165    const Stats& stats = stats_[stats_type];
    166     std::string outdir = stats_type+"/"+user+"/"+line_type+"/"+local_path();
    167     if (local_path()=="")
    168       outdir = stats_type+"/"+user+"/"+line_type;
    169 
     166    std::string imagedir = stats_type+"/"+"images/"+line_type;
     167    std::string outdir   = stats_type+"/"+user+"/" +line_type;
     168    if (local_path()!="") {
     169      imagedir += "/"+local_path();
     170      outdir   += "/"+local_path();
     171    }
    170172    mkdir(outdir);
    171     std::string imagedir = stats_type+"/"+"images/"+line_type+"/"+local_path();
    172173    if (user=="all")
    173174      mkdir(imagedir);
     
    188189    ss << "../../../";
    189190    if (user=="all")
    190       ss << stats.plot(imagedir+"index", line_type);
     191      ss << stats.plot(imagedir+"/index", line_type);
    191192    else
    192       ss << imagedir << "index";
     193      ss << imagedir << "/index";
    193194    os << "<p class=\"plot\">\n";
    194195    os << image(Configuration::instance().image_format(), ss.str());
Note: See TracChangeset for help on using the changeset viewer.