text.cc (6212:64c3b989238c) | text.cc (7444:669c1d2df752) |
---|---|
1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 398 unchanged lines hidden (view full) --- 407 print(stream); 408 } 409 410 for (off_type i = 0; i < size; ++i) { 411 stringstream namestr; 412 namestr << base; 413 414 Counter low = i * bucket_size + min; | 1/* 2 * Copyright (c) 2004-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 398 unchanged lines hidden (view full) --- 407 print(stream); 408 } 409 410 for (off_type i = 0; i < size; ++i) { 411 stringstream namestr; 412 namestr << base; 413 414 Counter low = i * bucket_size + min; |
415 Counter high = ::min(low + bucket_size, max); | 415 Counter high = ::min(low + bucket_size - 1.0, max); |
416 namestr << low; 417 if (low < high) 418 namestr << "-" << high; 419 420 print.name = namestr.str(); 421 print.update(data.cvec[i], total); 422 print(stream); 423 } --- 186 unchanged lines hidden --- | 416 namestr << low; 417 if (low < high) 418 namestr << "-" << high; 419 420 print.name = namestr.str(); 421 print.update(data.cvec[i], total); 422 print(stream); 423 } --- 186 unchanged lines hidden --- |