Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
3048f118
Commit
3048f118
authored
Feb 02, 2011
by
Michal 'vorner' Vaner
Browse files
[trac452] Language corrections
parent
2931606d
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/auth_srv.cc
View file @
3048f118
...
...
@@ -361,7 +361,7 @@ AuthSrv::setStatisticsTimerInterval(uint32_t interval) {
return
;
}
if
(
interval
>
86400
)
{
// It can't
be
occur since the value is checked in
// It can't occur since the value is checked in
// statisticsIntervalConfig::build().
isc_throw
(
InvalidParameter
,
"Too long interval: "
<<
interval
);
}
...
...
src/bin/auth/config.cc
View file @
3048f118
...
...
@@ -179,11 +179,11 @@ public:
virtual
void
build
(
ConstElementPtr
config_value
)
{
const
int32_t
config_interval
=
config_value
->
intValue
();
if
(
config_interval
<
0
)
{
isc_throw
(
AuthConfigError
,
"negative statistics
-
interval value: "
isc_throw
(
AuthConfigError
,
"negative statistics
interval value: "
<<
config_interval
);
}
if
(
config_interval
>
86400
)
{
isc_throw
(
AuthConfigError
,
"
t
oo long statistics
-
interval value: "
isc_throw
(
AuthConfigError
,
"
T
oo long statistics
interval value: "
<<
config_interval
);
}
interval_
=
config_interval
;
...
...
src/lib/asiolink/asiolink.h
View file @
3048f118
...
...
@@ -585,7 +585,7 @@ private:
/// The type of call back function is \c void(void).
///
/// The call back function will not be called if the instance of this class is
/// destr
uct
ed before the timer is expired.
/// destr
oy
ed before the timer is expired.
///
/// Note: Destruction of an instance of this class while call back is pending
/// causes throwing an exception from \c IOService.
...
...
src/lib/asiolink/tests/asiolink_unittest.cc
View file @
3048f118
...
...
@@ -899,7 +899,7 @@ TEST_F(IntervalTimerTest, destructIntervalTimer) {
// the program would immediately terminate anyway.
// The call back function will not be called after the timer is
// destr
uct
ed.
// destr
oy
ed.
//
// There are two timers:
// itimer_counter (A)
...
...
@@ -908,16 +908,16 @@ TEST_F(IntervalTimerTest, destructIntervalTimer) {
// itimer_canceller (B)
// (Calls TimerCallBackCancelDeleter)
// - first time of callback, it stores the counter value of
// callback_canceller and destr
uct
s itimer_counter
// callback_canceller and destr
oy
s itimer_counter
// - second time of callback, it compares the counter value of
// callback_canceller with stored value
// if they are same the timer was not called; expected result
// if they are different the timer was called after destr
uct
ed
// if they are different the timer was called after destr
oy
ed
//
// 0 100 200 300 400 500 600 (ms)
// (A) i--------+----x
// ^
// |destr
uct
itimer_counter
// |destr
oy
itimer_counter
// (B) i-------------+--------------s
// ^stop io_service
// and check if itimer_counter have been
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment