Changeset 29727
- Timestamp:
- Nov 9, 2010, 3:33:11 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/tools/czartool/Plotter.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/czartool/Plotter.pm
r29712 r29727 304 304 my ($self, $timeDiff, $divX, $timeFormat) = @_; 305 305 306 # if less than a few mins of data, show 1 minute tics 307 if ($timeDiff < 300) { 308 ${$timeFormat} = "%H:%M"; 309 ${$divX} = 60; 310 } 311 # if less than a few mins of data, show 5 minute tics 312 elsif ($timeDiff < 1800) { 313 ${$timeFormat} = "%H:%M"; 314 ${$divX} = 300; 315 } 316 # if less than an hour of data, show 15 minute tics 317 elsif ($timeDiff < 3600) { 318 ${$timeFormat} = "%H:%M"; 319 ${$divX} = 900; 320 } 306 321 # if less than a couple of hour's data plotted, show 30 mins tics 307 if ($timeDiff < 7200) {322 elsif ($timeDiff < 7200) { 308 323 ${$timeFormat} = "%H:%M"; 309 324 ${$divX} = 1800;
Note:
See TracChangeset
for help on using the changeset viewer.
